Hi All,
We have data in variable %JsonAsCustomObject% as shown below:
If we want to get the data from the firs record, we'd use %JsonAsCustomObject['1']% or if we use %JsonAsCustomObject['1']['name']% we get "root"
But we need to use variables in when indexing for data. So form the above example,where %Temp_Index% is set to 0, we'd like to be able to use %JsonAsCustomObject[Temp_Index]%, but when we try this, we get the error message "Variable 'JsonAsCustomObject' does not support indexing."
Thanks.
Solved! Go to Solution.
Your variable needs to be of type string.
Convert it from a number to text. That way you will be able to access the property with a text representation of a number.
Your variable needs to be of type string.
Convert it from a number to text. That way you will be able to access the property with a text representation of a number.
Thanks, it worked.
I converted the %Temp_Index% variable from number to text format, and used it to access specific data in the custom object: %JsonAsCustomObject[Temp_Index]% or %JsonAsCustomObject[Temp_Index]['totalFolders']%
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.