→ Use deserialize Json activity pass the input as json string and output we would get json object.
→ Now use deserialize Json Array activity pass the input as like below.
JsonObject(“externalKeys”).tostring
and output we would get the JsonArray and it is having the entries in our case in the above json we are having 5 keys. if we use the below expression we would get value as 4. so our last row key value number as 4.
JsonArraylastrowCounter= JsonArray.Count.tostring
Pass this value in your token expression to get the key value
Hey,
if you need always the last one element you can count how many their you have.
Example you can use ‘for each loop’ for “data” - like:
Convert.ToInt32(JObject(“Data”)(i)(“externalKeys”).Count)
where i is iteration (0,1,2,3 etc.)