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?
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:
(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!
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
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!
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!
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
Awsome, I'm happy to hear that. Glad that I could help! Good luck with the rest of your workflow!
All the best!!
is working on a reply...