I am integrating Contour with dotMailer and would like to have the ability to make my multiple Contour forms post to different Address Book Lists within dotMailer.
I was thinking about passing the ListID of dotMailer as a Macro parameter when you "Insert form from Umbraco Contour" - therefore, ListID becomes dynamic.
I also thought about creating a hidden field in a Contour form and having its default value set to a ListID within dotMailer. However, this relies on the client to input the exact fieldname for the hidden field to match the field within my custom workflow.
This custom workflow (which is working) contains "Name, Email, Message" and uses a hardcoded ListID to put the submissions into a specific list within dotMailer. If I was to use a Macro Parameter, how would I make ListID dynamic in the custom workflow.
You won't be able to access those, you could also make a custom fieldtype that lets the client selet from the available lists, not sure if dotmailer api makes it possible to fetch those?
Macro parameters with Contour
Hello,
I am integrating Contour with dotMailer and would like to have the ability to make my multiple Contour forms post to different Address Book Lists within dotMailer.
I was thinking about passing the ListID of dotMailer as a Macro parameter when you "Insert form from Umbraco Contour" - therefore, ListID becomes dynamic.
I also thought about creating a hidden field in a Contour form and having its default value set to a ListID within dotMailer. However, this relies on the client to input the exact fieldname for the hidden field to match the field within my custom workflow.
This custom workflow (which is working) contains "Name, Email, Message" and uses a hardcoded ListID to put the submissions into a specific list within dotMailer. If I was to use a Macro Parameter, how would I make ListID dynamic in the custom workflow.
Any help / ideas would be greatly appreciated.
Thanks
Rick
Comment author was deleted
You won't be able to access those, you could also make a custom fieldtype that lets the client selet from the available lists, not sure if dotmailer api makes it possible to fetch those?
Comment author was deleted
Or you could set it as a page property value, and then use the special syntax to access that in the workflow (check contour dev docs)
Hi Tim,
Thanks for your response.
Do you know if there is a way to access the Macro property from inside this event within my custom workflow?
public override Umbraco.Forms.Core.Enums.WorkflowExecutionStatus Execute(Record record, RecordEventArgs e) {
}
Comment author was deleted
Don't think so, would 1 of the 2 options I mentoined above be useable in your case?
Just in case anyone was wondering, the hardcoded listId remained inside the workflow as there was only ever going to be a single list.
I may revisit this the next time I run into this issue with a different client!
Thanks for your help / ideas Tim.
is working on a reply...