Hi All,
I am doing a http GET request using below url where aIp8Y000000GpIhSAK may vary everytime . I have captured that in variable quote_num , how the final url will be with variable
@Anil_G any help on this?
Hi All,
I am doing a http GET request using below url where aIp8Y000000GpIhSAK may vary everytime . I have captured that in variable quote_num , how the final url will be with variable
@Anil_G any help on this?
Try this:
quote_num = "aIp8Y000000GpIhSAK"
apiUrl = "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"
Hope it helps!!
Assign urlTemplate = "https://databricks--uat2.sandbox.my.salesforce.com/services/data/v54.0/query/?q=select+ContentDocument.LatestPublishedVersionId+from+ContentDocumentLink+WHERE+LinkedEntityId+=+'{0}'+ORDER+BY+ContentDocument.LastModifiedDate+DESC+LIMIT+1"
Assign quote_num = "aIp8Y000000GpIhSAK"
what you have taken final url ?
Sorry,Check the below one
finalUrl="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"
I am trying to re[licate this from postman and want to get latestpublished version Id from quoteid whicg is aIp8Y000000GpIhSAK’
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.