Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
anand17072020
Contributor
Contributor

tRestClient to tExtractJSONFields unable to extract data

Hi All,

I am able to print to tLogRow from tRestClient the whole json file without any issues. But having issues with extracting the fields I need using tExtractJSONFields from tRestClient.

Json file:

{

 "message": "Successfully retrieved promotions",

 "errors": [],

 "validationErrors": [],

 "data": [

 {

  "tlt": "005",

  "appName": "platform"

 },

 {

  "tlt": "007",

  "appName": "server"

 }

 ]

}

Labels (2)
1 Solution

Accepted Solutions
rhall1
Contributor III
Contributor III

You need to make a couple. of changes here. The first change is that the tRestClient will be passing the JSON using the "string" column and not the "body" column. So change your JSON field to "string". The next is your "Loop jsonpath query". This needs to be....

 

" $.data[*]"

 

After these changes, it should start producing results for you.

View solution in original post

2 Replies
rhall1
Contributor III
Contributor III

You need to make a couple. of changes here. The first change is that the tRestClient will be passing the JSON using the "string" column and not the "body" column. So change your JSON field to "string". The next is your "Loop jsonpath query". This needs to be....

 

" $.data[*]"

 

After these changes, it should start producing results for you.

anand17072020
Contributor
Contributor
Author

Thank you so much!! it worked.