cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger Workflow in SAP Commerce when A Product is received from S/4

ketkimujumdar
Discoverer
0 Kudos
125

Hi Everyone! We are working on integrating SAP Commerce cloud with S/4Hana. We have managed to get products from S/4 into SAP commerce catalog. Our aim is to trigger a workflow whenever a new product is imported into SAP Commerce from S/4Hana so that product manager is notified about new product and take the required action. We have managed to create a workflow with desired actions but are struggling with workflow trigger. We are aware of triggering a workflow with workflowProcessingService but We are unable to figure out how to determine a new product is imported from S/4Hana. Any leads on this will be helpful.

View Entire Topic
KunalBansal
SAP Champion
SAP Champion

Hello @ketkimujumdar,
May I suggest as below which might help - 
- add a custom attribute (isNewFromS4Hana) to ProductModel and set true when new product got imported.
- implement an Interceptor (using ModelSaveInterceptor or PrepareInterceptor) to check if a product creatyed newly.
- or using ImpEx for product imports, utilize afterImportHook to detect new records and trigger a workflow.
If it helped, mark thread as accepted solution.
Thanks & Regards,
Kunal Bansal, SAP CX SME
https://www.linkedin.com/in/thekunalbansal