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
8 replies
Subscribers
7 subscribers
Views
2023 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Good morning, I am trying to create a history log array from my main array
parisam
over 9 years ago
Good morning,
I am trying to create a history log array from my main array which only contains few columns out of the main array. I am having issue with the syntax and to create a new row for each index. Is there a function I can use?
MainArray'(
Id_Int:pv!MainArray.I d_Int,
StatusId_Int:pv!MainArray.Status_Int,
StausDesc_Text:pv!MainArray. Status_Text,
ProcessorName_Text:pv!MainArray.processor_Text)
Result:
[LogId_Int=, Id_Int=, StatusId_Int=1, StausDesc_Text=New; New, ProcessorName_Text=; , ]
...
OriginalPostID-133184
OriginalPostID-133184
Discussion posts and replies are publicly visible
0
Aleksi White
Appian Employee
over 9 years ago
You could try using a script task. In the data inputs tab, create a variable that is of type history log (you can create a CDT for this). Then map the specific values from the main array to the history array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
parisam
over 9 years ago
I do have a CDT for both arrays. I did try to map the data but it didn’t work
On the output I tried this:
Expersion
pv!MainArray.I d_Int
Is Appended to list
theProcessStatusLog_CDT.Id_Int
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 9 years ago
In pv!MainArray.I d_Int, you have a space between the I and d. If you remove that, does that resolve anything?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
parisam
over 9 years ago
what I have in the example above are not the actual names. In my code I don’t have any space
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 9 years ago
Could you include screenshots of the actual setup?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
parisam
over 9 years ago
screenshot
ArrayError.doc
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
parisam
over 9 years ago
any recommendation ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 9 years ago
If possible, could you recreate this in a simple application and attach it here?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel