Expand my Community achievements bar.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
SOLVED

Need help in Converting Array output to a string which can be store in a CSV file.

Avatar

Level 1

Hello Team,

 

I'm searching ASSGN object and trying to get the workperdate, AssignedTo ID values, post that I'm storing the data in datastore. So the workperdate is an array having collection(attached the screenshot). 

 

But Now if i try to create a CSV file for the same this workperdate is fields is null/empty. How i can simply the array collection so that it will easier to put in CSV. I have attached the scenario ss as well.

 

J1ret_0-1754410659605.png 

J1ret_1-1754410771885.png

J1ret_2-1754410902777.png

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @J1ret,

 

In this case it depends how you want to save the string as, if the JSON will suffice you can use "Transform to JSON" module and save json in csv field (you will probably need to escape "," or use advanced options to add different delimiter), another option is to use classic Iterator to iterate "Work per day" items in combination with Text aggregator where you aggregate only needed data in any format acceptable for you.

 

Hopefully this helps.

 

Best regards,
Ivan

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

Hi @J1ret,

 

In this case it depends how you want to save the string as, if the JSON will suffice you can use "Transform to JSON" module and save json in csv field (you will probably need to escape "," or use advanced options to add different delimiter), another option is to use classic Iterator to iterate "Work per day" items in combination with Text aggregator where you aggregate only needed data in any format acceptable for you.

 

Hopefully this helps.

 

Best regards,
Ivan

Avatar

Level 1

Thanks Ivan, I have tried the same approach one more step i did is converted that Json output(from the Transform Json module) to a string and then stored it into CSV.