cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Sales Cloud V2 Opportunity Update Extension Fields via SAP Build App

MeetSAP
Explorer
0 Likes
591

Hi Experts,

I am working on SAP Sales Cloud and Service Cloud V2, 

I have requirement to update Extension fields based on Some Conidtion and use them in Validation and in Dynamic Rukes.

In SAP Service Cloud V2, I have added Extension Fields in Case and able to Update using SAP Build App Update Records without any Issues.

Same way I have Created Extension fields in SAP Sales Cloud V2 , I have added Extension fields in Opportunity and follow the below method to Update the Extension fields via SAP Build App.

Step 1 : Create Destination for Sales Cloud V2

Step 2: Use the Destination to Enable the Opportunity API in Integration Tab(In SAP Build App)

Step 3 : Create Data Variable and Select the newly added API and Choose Single Record and in Property select ID/Technical ID (Opportunity UUID pass via Page Parameters)

Step 3: Add Button in SAP Build App and In logic I have added Get Record Flow Function and select the Opportunity API, and bind the Id with Page Parameters(Passing into URL),

Working Scenario for Case Extension Field

MeetSAP_0-1765804643297.png

In Flow Function JavaScript we have given Input from Get Record and Output as Object

MeetSAP_2-1765804762757.png

After JavaScript Output I have use to Set Data Variable as below, Using that I can see the updated value in Extension fields availaile in Data Variable.

MeetSAP_1-1765804714555.png

After that I have use Update Record and pass same Data Variable as Record and I can able to update the Case Extension fields in SAP Service Cloud V2.

MeetSAP_3-1765804882572.png

Not Working Scenario for Case Extension Field

 

MeetSAP_0-1765807226629.png

 

Same Method same steps but Opportunity API but getting error as below:

Error Message : Subnodes must not be present in Opportunity header patch payload

MeetSAP_4-1765805040840.png

If anyone have any idea how to update the Extension fields in Opportunity via Build App Please help.

Rwegards,

Meet

@SAPbuild @sapbuild_user 

Accepted Solutions (1)

Accepted Solutions (1)

Yogananda
Product and Topic Expert
Product and Topic Expert

@MeetSAP 

you must use PATCH method with IfMatch tag to get any updates into extension fields

use this blog for reference... 
https://community.sap.com/t5/crm-and-cx-blog-posts-by-sap/sap-sales-amp-service-cloud-v2-esm-apis-et... 

MeetSAP
Explorer
0 Likes

Thanks @Yogananda, I have followed this and I can able to update the Extensions fields but need to check why Case API Extension fields updated without if patch in Service Cloud V2 I can able to update the extension fields using Update Record without Passing etag and If-patch

Answers (0)