cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule a Workflow after certain days using SDK

s_balu
Explorer
0 Kudos

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

mkuhr-test
Advisor
Advisor
0 Kudos

Hi Subbu,

I'd suggest to improve your question by more clearly stating which product you are using, what your use case is and what the desired outcome should be. Use links to product and documentation pages to make it clear.

s_balu
Explorer
0 Kudos

Dear,

It was very clear. Continue to above.

We need to send a notification to a customer with an attachment. While sending notification there are certain criteria to trigger the workflow. In standard workflow, we have option schedule, like the same way can we send a e-mail notification to customer with an attachment without entering in an opportunity screen.

1. User will enter a date in a date field and save the opportunity.

2. Prior to a day before we have to send an e-mail to customer with an attachment. Here there is no action. it has to send automatically based on date.

BR

Subbu.

Accepted Solutions (0)

Answers (1)

Answers (1)

artemkovalov
Employee
Employee
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.