Problem with Atrributes

(Janmajay Adhikari) #1

@sarahpalombo @KarenBarker @johnjackson
Hi Team,
I’m able to set 2 attribute username and domain, I can also see them in interaction logs under Set a Attribute flow action. But when I reference them in next flow action (Send A Message) and try to use the attribute like Hi {{new_message_from_customer.attributes__username}} it doesn’t retrieve the value of attribute username.

Is this an ongoing issue?

Thanks,
Janmajay

(Janmajay Adhikari) #2

@sarahpalombo @KarenBarker @johnjackson

HI Team,
I was able to give a deeper look into the issue. Initially I used Web Messenger API to pass meta date to my web bot and then I’m setting attributes based on the metadata passed. In Send a Message action I’m using the attribute(that has been set in previous step), for the BOT to reply as “Hi Username” but the flow action is not able to read the attribute that has been set in previous flow action step.

However when I login with a different username and start the flow again, Flow action reads the attribute value that was set in previous interaction. Please refer screenshot below. It gives a reply “Hi Username” for the old user that is for the old attribute value. The attributes are not getting referenced in the same interaction by the flow action

Thanks,
Jay

(Janmajay Adhikari) #3

HI Team,
Any update on the issue? Is this a known BUG in attributes? Or I’m doing something wrong?

(Karen Barker) #4

Hi Janmajay,

Whenever an attribute is updated you will need to Get the latest value by using the Attribute > Get Attribute action. You can then use the output from this as the latest value.

Please see the support article on Using Attributes in Flow XO for a more detailed example.

Hopefully that helps! If you are using the Get Attribute and the value is still not being updated please let us know :slight_smile:

1 Like
(Janmajay Adhikari) #5

Thanks @KarenBarker

Is there a way to fetch multiple attributes in a single flow action? If I’m setting 3 attribute during the flow in order to use them do I need to use 3 Get Attribute flow actions?

Thanks,
Jay

(Karen Barker) #6

Hi Jay,

Unfortunately at the moment you can only retrieve 1 attribute at a time using the Get Attribute function. If you have 3 attributes you will need to do 3 Get Attribute actions to return them all.

We do have an idea on the roadmap to allow the getting of multiple actions at one time - please do vote for this idea.