Filter Broadcast by user attribute

(Erwin Julius) #1

Hi!

I’m trying to filter a webhook broadcast by user attributes collected on other flow.

I’ve tried:
On Flow A, to set an attribute to the user:
Set Attribute Action
Response Path = general
Attribute Name = category
Value = 123

On Flow B I can GetAttribute using ResponsePath general and name category, so it sends a message with the right value.

Now, on Flow C, a Broadcast one, I cannot filter it execution(trigger) by this attribute.
I tried {{general.attributes__category}}, {{general.category}}, {{general.attributes__category.value}}, but not working.

On Flow C If I GetAttribute using ResponsePath general and name category, so it sends a message with the right value to each user on broadcast.

How can I use this attribute on flow trigger?

(Erwin Julius) #2

One more test…

When I use {{receive_a_webhook.attributes__cast_id}} on broadcast trigger filter, it brings a different value from using GetAttribute with ReturnPath receive_a_webhook and name cast_id, on the same flow.

(Karen Barker) #3

Hi Erwin,

Attributes are globally accessible across all flows on the response path. If you set an attribute in Flow A, in any other flow you can reference this value by using the format {{FlowC_Trigger_name.attributes__attribute_name}}.

If you use the Attributes > Get attribute service then no matter which flow you are in all you will need to do is type the attribute name into the setup field of this funtion and then use the format {{get_an_attribute.value}}

Hope this helps.