Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
7 replies
Answers
1 answer
Subscribers
8 subscribers
Views
13894 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Convert Text into Dictionary
mikej117
over 8 years ago
Hello data conversion experts!
I am trying to convert some data that is being stored as a Text data type into a List of Dictionary data type. I've tried a few different things, such as converting to and from JSON (this gives me a List of Text output), and also tried casting the value. No luck. Has anyone managed to do this in an Appian expression rule?
Here's my current rule that seems to always return an empty Dictionary (note that ri!value is a Text Array):
cast(
194, /* magic number for type: 'List of Dictionary' */
ri!value
)
OriginalPostID-244347
Discussion posts and replies are publicly visible
Parents
0
aloks0189
Certified Lead Developer
over 8 years ago
@mikej117 that's Correct, here 'local!jsonData' is of type Text and contains JSON Form of Data which again gets converted back to List of Dictionary Format using fromJson().
Happy to help
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
aloks0189
Certified Lead Developer
over 8 years ago
@mikej117 that's Correct, here 'local!jsonData' is of type Text and contains JSON Form of Data which again gets converted back to List of Dictionary Format using fromJson().
Happy to help
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data