Hi,
KIndly help me how to get keys from dynamically listed dictionary, this could be of any type means list of variant, list dictionary, list map, map, dictionary,
when getting result, it is type of dictionary, when checking its type it is showing of any type.
Below is the code which is not working.
a!localVariables( local!data: { id: 1, name: { firstname: "shree", lastname: "tiwari" } }, local!name: property(local!data, "name", null()), local!keys: a!keys(local!name), local!keys /*{*/ /*typename(*/ /*typeof(property(local!data, "id", null()))*/ /*),*/ /*typename(*/ /*typeof(property(local!data, "name", null()))*/ /*),*/ /*property(local!data, "id", null()),*/ /*property(local!data, "name", null()),*/ /*local!keys*/ /*}*/ )
Commented code to check type of above local!name variable.
added screenshot of response for reference.
Kindly suggest how to do this in appian.
Thanks in advance,
Shree Krishna Tiwari
Discussion posts and replies are publicly visible
Hi shreekrishnat0001 ,I know it's been years ago you have faced this issue, but did you come across any solution to this?
Hi sanjuktab2257 ,
I fixed this issue changing it from dictionary to map, this way it was resolved.
Try it and let me know in case not working.
Thanks,