2025 Dec 15 1:28 PM - edited 2025 Dec 15 2:00 PM
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
In Flow Function JavaScript we have given Input from Get Record and Output as Object
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.
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.
Not Working Scenario for Case Extension Field
Same Method same steps but Opportunity API but getting error as below:
Error Message : Subnodes must not be present in Opportunity header patch payload
If anyone have any idea how to update the Extension fields in Opportunity via Build App Please help.
Rwegards,
Meet
Request clarification before answering.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.