Copied to clipboard

Flag this post as spam?

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


  • Raymond 5 posts 96 karma points
    May 16, 2016 @ 06:01
    Raymond
    0

    Unable to apply Workflow to Umbraco Forms

    Hi all,

    I have currently a Form that exists in my site. It currently uses the Send Email Workflow and works fine. I wanted to add in a custom workflow to extend this email sending feature. Right now I just have a template Workflow class created by following the documentation and this .cs file exists in App_Code.

    When I log in to Umbraco backoffice, I see the available new Workflow that I can add to the Form. Except when I go to add the Workflow, it gives me the error saying "Workflow failed to save: please check if your settings are valid"

    Am I missing something? Is it in the code or permissions wise that isn't allowing me to add this workflow? Anything to do with who purchased Umbraco Forms and made the installation?

    Thanks in advance for the help!

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    May 16, 2016 @ 06:20
    Dennis Adolfi
    100

    Hi Raymond.

    I dont think it has anything to do with the license, you can create workflows without license. Howerver a workflow requires a few setting in order to function like name and id (guid) and maybe some of them are missing? Also you need to call ValidateSettings() when the workflow is saved, are you doing that and is it coming out without exceptions?

    I´ve created a workflow on qithub that you could have a look at the source and maybe that will help you figure out your problem:

    https://github.com/Adolfi/MemberFormsWorkflow/blob/master/MemberFormsWorkflow.cs

    (Not that there is a lot of code in this sorce that you dont need becuse this is a complete workflow for creating members from form entries, but maybe some parts can help you.)

    Best of luck to you, let me know how it works out!

  • Raymond 5 posts 96 karma points
    May 16, 2016 @ 17:31
    Raymond
    1

    Thank you Dennis, looks like only thing I was missing was not validating the settings. Which I didn't think I needed to if I didn't include any settings. I just created an empty List

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    May 16, 2016 @ 19:46
    Dennis Adolfi
    0

    Awsome, I'm happy to hear that. Glad that I could help! Good luck with the rest of your workflow!

    All the best!!

Please Sign in or register to post replies

Write your reply to:

Draft