Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
2185 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I do have array of document as Process variable. I want to iterate over this doc
sariqs
over 9 years ago
I do have array of document as Process variable. I want to iterate over this document array and fill its reference document ID in CDT Object along with other details of document. How can I achieve this ?
There is EntityData I can use to create CDT object but how can I iterate over the document array in the script task expression ?...
OriginalPostID-134061
OriginalPostID-134061
Discussion posts and replies are publicly visible
0
janakik
over 9 years ago
With the looping functions you can acheive this, for instance apply(fn!tointeger,pv!documentArray) will return you the id's of all the documents. You can use this in the output tab of a script task and saveInto your CDT field.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sariqs
over 9 years ago
Thank you for your reply. Apply function would work but I am not sure how should I define the CDT array variable, fill it and save it in the script task.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harshav
over 9 years ago
In the output of the script task call it as apply(fn!tointeger,pv!cdt.documents).Then if you are planning to store it,give is stored as option...if you r appending it use appended to list option.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel