Extract from a (JSON) String

I have the following string variable:

“{"searchRecords":[{"attributes":{"type":"Account","url":"/services/data/v42.0/sobjects/Account/0017d00001ApFoZAAV"},"Id":"0017d00001ApFoZAAV","Name":"ABC LLC"}]}”

I want to extract out 0017d00001ApFoZAAV. This id number will change but the rest should be consistent.

We can handle it has JSON

grafik

And extract the value like:
grafik

YourJObjectVar("searchRecords")(0)("Id").value(of String)

1 Like

Str=Jobject(“SearchRecords”)(0)(“ld”).Tostring

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.