Question

Parsing collection of values/records into list of values and list of keys

Dear Community,

 

I am struggling with the use of collections in scripts within a business process.

 

It seems that a collection of records has these properties: 

Item | Keys | Values | Count | IsReadOnly 

 

However I cannot seem to access them. 

 

This is what I wish to accomplish:



I receive data from a webservice, I want to parse this data into a list of keys and a list of values.

 

Thank you.

Like 0

Like

1 comments

Hello Pascal,

 

The webservice should return a JSON string with a predefined set of keys that then should be parsed in the busines process. So you know the list of keys (since the Webservice should return the exact list of keys, not the random set of keys with random names) and what is left to be done is developing a business process that can parse the result. For example you can use the approach discussed here, where the response from a Webserivce was successfully parsed and use the same approach on your end.

Show all comments