Write Multiple values to Insight Attribute

Dave Ellard June 13, 2022

Hi All,

I am writing an Insight Groovy script to enrich a user object. When enrichment fails for a reason I want to store multiple reasons as to why the enrichment fails. All the reasons are stored in a seperate object schema, so I want to be able to select the reason code and write them to an Automation error attribute. 

Should I collect any existing values in my user object and then append the new reason code to the list and write the list back?

Any help / code snippets would be greatly appreciated.


 

0 answers

Suggest an answer

Log in or Sign up to answer