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
1132 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi All, I have a CDT(say TestCDT) which has some fields ,for simplici
georgej
over 8 years ago
Hi All,
I have a CDT(say TestCDT) which has some fields ,for simplicity let's take 2 fields. TestCDT.field1 = "a" and TestCDT.field2 = {1,2} (field itself contains and array). I want to copy this content to another CDT (same structure) with values as below
First Occurrence-->TestCDTCopy.field1="a",TestCDTCopy.field2 = 1
Second Occurrence-->TestCDTCopy.field1="a",TestCDTCopy.field2 = 2 (each value in TestCDT.field2 should be split into multiple occurrence,value of all other fields should be same)
Any suggestions please
OriginalPostID-200652
OriginalPostID-200652
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 8 years ago
Following your example:
load(
local!TestCDT: type!TestCDT(
field1: "a",
field2: {1,2}
),
apply(
type!TestCDTCopy(
local!TestCDT.field1,
_
),
local!TestCDT.field2
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
georgej
over 8 years ago
Awesome,thank you Phil
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
No problem!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel