Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Klaus Hebsgaard 10 posts 40 karma points
    Jan 22, 2014 @ 14:42
    Klaus Hebsgaard
    0

    Umbraco contour get email from workflow

    I created a stackoverflow question, but am hoping to get an answer here:

    http://stackoverflow.com/questions/21277926/umbraco-contour-get-email-from-workflow

    I have a receipt page that the user is redirected to after form submisson. On this page I show a macro that summarise the form.

    The gist of the macro is pretty mucg like this:
    http://our.umbraco.org/forum/umbraco-pro/contour/32623-Sort-and-iterate-through-form-fields-with-Razor

    I would like to tell the user "you will soon receive an email" if a workflow exists, that sends an email to the submitter, on the page.

    How is this feasable?
    I have searched a lot on the internets and can only see how I create my own workflow, not how I access workflows by code...

  • Comment author was deleted

    Jan 22, 2014 @ 14:44

    You'll need to make use of

    Umbraco.Forms.Data.Storage.WorkflowStorage

    Once you create an object of that instance you can call the method GetAllWorkFlows(Form form) or GetActiveWorkFlows(Form form, FormState state)

    You'll of course need the form object

    And you can get that with

    Umbraco.Forms.Data.Storage.FormStorage

Please Sign in or register to post replies

Write your reply to:

Draft