API Error Https

Hi All,

I am doing Get Request and getting the following error. Can anyone help me on this ?

Please check if you are receiving any response from API. Generally you will get this error if you are passing any non JSON format string to deserialise activity.

Cheers!

1 Like

@pathrudu

getting the below error response
image

Looks there is some issue in your API call. May be your server is taking long time or you might be calling in wrong way.

Cheers!

@pathrudu

This is the url which I want to call

https://databricks--uat2.sandbox.my.salesforce.com/services/data/v54.0/query/?q=select+ContentDocument.LatestPublishedVersionId+from+ContentDocumentLink+WHERE+LinkedEntityId+=+‘aIp8Y000000GpIhSAK’+ORDER+BY+ContentDocument.LastModifiedDate+DESC+LIMIT+1

where aIp8Y000000GpIhSAK need to take in variable.

I have replicated the same in Postman . I got the response.

When this is returned:
grafik

we use Deserialize JArray Activity as a JArray is returned

When the below is returned:

we use Deserialize JSON as a JObject is returned

@ppr

I have used below

Please let me know if the variable assignment is correct for +‘aIp8Y000000GpIhSAK’+

My url is

https://databricks--uat2.sandbox.my.salesforce.com/services/data/v54.0/query/?q=select+ContentDocument.LatestPublishedVersionId+From+ContentDocumentLink+Where+LinkedEntityId+=+‘“+quote_num+”’+ORDER+BY+ContentDocument.LastModifiedDate+DESC+LIMIT+1

In postman , the url is

https://databricks--uat2.sandbox.my.salesforce.com/services/data/v54.0/query/?q=select+ContentDocument.LatestPublishedVersionId+from+ContentDocumentLink+WHERE+LinkedEntityId+=+‘aIp8Y000000GpIhSAK’+ORDER+BY+ContentDocument.LastModifiedDate+DESC+LIMIT+1

lets be more direct and straighforward

use the immediate panel and check tokenResponseData_target

With the above given info you can check

  • starts with [ - JArray Deserialization is needed
  • starts with { - JObject Deserialization is needed

@dutta.marina
We have seen your other topic with a subsequent question which indicates that the parsing is working. So this topic can be closed by marking the solving Post

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