Help

The Community will be undergoing maintenance from Friday February 21 - Friday, February 28 and will be "read only" during this time. To learn more, check out our Announcements blog post.

Show Automation Condition in a message

Topic Labels: Automations Data
105 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Rob_Jameson
6 - Interface Innovator
6 - Interface Innovator

hi everyone!

I am using automations to send a message on slack when certain conditions are met. In the body of the message, I want to show the conditions that were used to create the listed results... but cannot figure this out.

I have a "Find Records" block setup, with the condition to find 5 records that match a certain multiselect field (in my screenshot, "O Positive").  This works fine.

When I go to configure the message block,  I can add different dynamic data by clicking the +, however, there is no way to select the condition. I want it to say "O Positive" in my message body (chosen dynamically from the Find Records block), but I only see the option to list the results here, which puts this in my message 5x, since it's showing this field for each of my 5 records. 

Instead, I want to simply show the condition I selected in the Find Records block 1x... so the message lets us know the conditions that created the resulting message.

Is there any way to select the conditions from a Find Records block in the Message block?... If not, is there a way to just show the first result (i.e. O Positive is shown one time, instead of 5x)?

Thank you

1 Reply 1
Mike_AutomaticN
10 - Mercury
10 - Mercury

Hey @Rob_Jameson!

Unfortunately there is no way to reference a value from the condition, nor to handle formulas within your automation (otherwise you could use an arrayunique()). So, in conclusion you cannot dynamically reference the condition nor the value once.

Two alternatives that you have are:

Have static text on your message just mentioning O Positive (your condition seems simple, so you could easily do this). Or else have a script within your conditional logic block and before the slack message that will arrayunique() the value, or similar!

Let me know your thoughts!
Mike, Consultant @ Automatic Nation