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

Schedule a Workflow after certain days using SDK

s_balu
Explorer
0 Kudos
34,660

Hi,

I would like to schedule a workflow from SDK automatically without any user action.

in Opportunity, based on creation date, I have to send e-mail after 5 days to the sales team in CC with an Attachment. As CC is not possible in standard workflow solution. How can I achieve to schedule a workflow through SDK. Please suggest.

Here main motive is,

1. I have to keep CC of sales team. No individual e-mails

2. Schedule a workflow so that it will send an e-mail after 5 day of the opportunity creation with attachment.

Note : --> No User action here, like login into opportunity and do some changes and save the opportunity.

BR

Subbu

Accepted Solutions (0)

Answers (1)

Answers (1)

artemkovalov
Advisor
Advisor
0 Kudos

Hi Subbu,

Check the API of SAP Workflow service and see if has desired features: https://api.sap.com/api/SAP_CP_Workflow_CF/resource

You can get a typed client library for Java or JS: https://api.sap.com/api/SAP_CP_Workflow_CF/cloud-sdk/Java

Here are more details on the SAP Cloud SDK and SAP Workflow service:
JS: https://sap.github.io/cloud-sdk/docs/js/features/openapi/pregenerated-clients/workflow

JAVA: https://sap.github.io/cloud-sdk/docs/java/features/rest/clients/scp-workflow-rest-api

s_balu
Explorer
0 Kudos

Dear Artem,

Thank you for solution and this is not what I am expecting. It should be in SAP C4C. We don't need to integrate with SAP CPI and it is too complicated.

BR

Subbu.