Copied to clipboard

Flag this post as spam?

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


  • Rick 92 posts 278 karma points
    Mar 27, 2012 @ 13:05
    Rick
    0

    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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2012 @ 15:27
    Tim Geyssens
    0

    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?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2012 @ 15:27
    Tim Geyssens
    0

    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)

  • Rick 92 posts 278 karma points
    Mar 27, 2012 @ 15:33
    Rick
    0

    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) {

    }

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 27, 2012 @ 16:24
    Tim Geyssens
    0

    Don't think so, would 1 of the 2 options I mentoined above be useable in your case?

  • Rick 92 posts 278 karma points
    Sep 11, 2012 @ 11:19
    Rick
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies