Appian Community
Site
Search
Sign In/Register
Site
Search
User
More
Cancel
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
I'm looking for...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
2488 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
How to replace a new value into CDT field? For Instance, following is the d
Vinod Bongoni
Certified Lead Developer
over 8 years ago
How to replace a new value into CDT field?
For Instance, following is the data for "rndTest2" CDT variable,
[id=1, rndTest2=[id=3, rndTest1=[id=56]]]
I need to change the value for "id"(which is inside of "rndTest1") to 100 with in the rules(no script task should be used).And, the CDT type is dynamic. Now this is "rndTest2" type and after it might be the same CDT or other CDT.
Please suggest me any possible ways.
OriginalPostID-168129
OriginalPostID-168129
Discussion posts and replies are publicly visible
0
siddharthg837
over 8 years ago
Hi Vinod,
One of the solution to your requirement is to create a virtual CDT type variable inside your expression using type!CDTType operator and then using the updatearray function, you can update the necessary fields of that CDT , and then use it across the board wherever required.
Cancel
Up
0
Down
Reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 8 years ago
Hi siddharth, Thank you for your response. It is not possible as CDT is dynamic. So I have resolved this issue by using "updatecdt" function in "CDT Manipulation" plug-in. Thanks.
Cancel
Up
0
Down
Reply
Verify Answer
Cancel