Skip to main content

#OpenAPI0 debatiendo

Hi,

 

I am trying to generate the Open API  3.0 with post method and it is giving the error as

 

[

{

"errorCode": "NOT_FOUND",

"message": "The requested resource does not exist"

}

]

I followed the same steps in sandbox and it was working fine. Do we need any specific setup with production instance?

 

Below is the URL I am running

https://XXXX.my.salesforce.com/services/data/v58.0/async/specifications/oas3

and resource is

{

"resources" : [

"/services/data/v58.0/sobjects/Contact"

]

}

8 respuestas
0/9000

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 respuestas
  1. 18 ago 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

Hello,

 

I started to use the Open API 3.0 to connect Salesforce with Salesforce by using flows. I am successfully able to post the records from source to target org.  Now, I want to continue with record update process.

It means, let's say I created a Contact record from Source org to Target Org and now I want to update a field value between these orgs. As per today, flows doesn't support the patch operation. With Winter'24 release flows will provide option to use the Patch action as well.

 

With this, do I have to rework anything in my current setup/ how to use the patch action concept with open API's?

 

Thanks in advance

#OpenAPI #Flow #HTTP POST Method

0/9000