0 Passing Values Through Workflow Triggers 4 Jeremy Turgeon posted 10 Years Ago Is it possible to pass data through a triggered workflow? For example, if we want an email to be sent every time a new prayer request is entered can that workflow access the prayer request's category, text or initiator?
Nick Airdo 9 years ago Forgot to mention... I was only able to get this to work with Rock McKinley 2.0 (currently in alpha as of this writing).
Don Smallman 9 years ago Nick. Will this work with the new Group requests? I would like to send an email with info pertaining to the person and the group they registered for. I got the email part to work. Now just trying to figure out how to include some useful information.
Jeremy Turgeon 9 years ago The Advanced Workflows tutorial covers a normal workflow that is user initiated. I'm trying to figure out a way to pass this information through Workflow Triggers. These are under Admin Tools > General Settings > Workflow Triggers and are activated when a specific event occurs (new prayer entered in my example). Thanks for you help though, Trey. :)
Nick Airdo 7 years ago If you set up another Text attribute you can use the RunSQL action to get the prayer request's text via:SELECT [TEXT] FROM [PrayerRequest] WHERE [Guid] = '{{ Workflow.PrayerRequest }}'
Don Smallman 7 years ago Brad, please let me know how that works out for you. I am interested in this as well.
Nick Airdo 7 years ago Your screenshot looks good. Is it working for new requests coming in? If so, your new attribute Prayer Request Text should be getting the results from that action when it runs. If it's not working make sure that new action is running (check the WF log) and/or it could be the{{ Workflow.PrayerRequest }}reference -- so you might need to change it to{ Workflow | Attribute:'PrayerRequest','RawValue'}}or the format used shown in the Workflow Actions guide over at https://www.rockrms.com/WorkflowActionCategory?Category=1 ({{ Workflow.PrayerRequest_unformatted }})