on 2025 Feb 05 7:26 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.