Skip to main content

Current Open API 3.0 only allows to fetch the record based on recordId. It would be nice to get the record based on other fields as well.

Ex:

I am using Open API 3.0 to connect two Salesforce systems. I want to if there is any duplicate record existing in the spoke org based on email address. But the current Open API only supports to perform get operations with Id field only.

It would be really useful to allow the action with any other fields as well. In my example like, email field.

Supported by Open API:

{

"resources" : [

"/services/data/v58.0/sobjects/Contact/{id}",

"/services/data/v58.0/sobjects/Contact/{email}"

]

}

Looking for:

Supported by Open API:

{

"resources" : [

"/services/data/v58.0/sobjects/Contact/{id}",

"/services/data/v58.0/sobjects/Contact/{email}"

]

}

below is my idea in IdeaExchange

https://ideas.salesforce.com/s/idea/a0B8W00000Pjy8cUAB/allow-contact-email-field-as-a-resource-through-open-api-30

 

Does anyone have any work around for this ( any references would be appreciated)?

#OpenAPI #RestAPI #FlowCallout

2 réponses
  1. 18 août 2023, 13:31

    Hi Pratyush, 

     

    I went with writing custom apex code to manage the get scenario here and call the apex method through flow to retrieve the result. I had a couple of discussions with Salesforce team and they confirmed me that open API currently support only Id field for get call.

0/9000