cancel
Showing results for 
Search instead for 
Did you mean: 

Salesforce OCI Integration with SAP CPI

NareshDasika18
Participant
0 Kudos

Hello All,

As part of one of the Integration requirement, SAP Integration Suite has to export(post/push) data to Omni Channel Inventory (OCI) Salesforce Impex Endpoint using JWT authentication mechanism. 

Salesforce Impex API- Salesforce APIs in OCI invoked to publish or extract Inventory Information.

To meet this requirement, standard Salesforce adapter (from SAP) has been used with authentication "OAuth JWT Bearer". I see the possibility of configuring URL (OCI Export endpoint) only with Type "Apex call".

When executing the integration flow it is failing with an error message-"

org.apache.camel.CamelException: {"error":"invalid_grant","error_description":"user hasn't approved this consumer"}
 
Per Salesforce consultant, there is no issues with the user role/authentication.

Can anyone please clarify if it is correct to use "Apex call" type in Salesforce adapter to export data to OCI Impex endpoint?

Regards,

Naresh Dasika

 

Accepted Solutions (0)

Answers (1)

Answers (1)

rakesh205
Explorer
0 Kudos

Hi Naresh,

As per the channel screenshot there is 2"//" just before availability, hence can you please verify the endpoint one more time. And in the relative URL u just need to give the URL post <host_name> starting from /* and hostname needs to be in the connection tab
I'm not sure if my understanding the requirement correctly here, so are you trying to post the data into the Salesforce or requesting for it?
Moreover, I will suggest trying the Post via postman to see the results if it works then there is some issue in the I-Flow other way you can also ask Salesforce team to share the postman collection where they are able to post the data.
We have don't the apex calls for posting the messages into SF and it works.