cancel
Showing results for 
Search instead for 
Did you mean: 

How to include a URL to access the SAP WF approval screen in the notification e-mail

Yamaki
Explorer
0 Kudos
369

Hello experts,

We are creating an application approval function using SAP Business Workflow.

In this process, we are considering a mechanism to send an email notification to the approver once an applicant has submitted an application.

Is there a way to include in that email a URL to access the approval screen associated with the application ID?

------8/19 Additional Questions------
Regarding the additional question about the workflow container in the reply section, the details are as follows:

Yamaki_1-1724049631340.png

 

 

SBach
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Thank you. I guess in the screenshot you opened the workflow definition in PFWS. Deep link over CDS view I_WorkflowTaskURL provides WorkflowTaskURL for a workflow task instance (WorkflowTaskInternalID) = workitem id for the User Decision Task.
Yamaki
Explorer
0 Kudos
Thank you for your reply. I understand that it is the workitem id of the user decision task. I will give it a try. I have set the URL in the first answer, and when I accessed it from WorkflowTaskURL in CDS view I_WorkflowTaskURL, the following error was output. Can you please advise which setting is incorrect?The roll message is displayed, but it is accessible when accessed via MyInbox from FioriLaunchPad. Thank you.
View Entire Topic
SBach
Product and Topic Expert
Product and Topic Expert

Hi, there is a deep link to My Inbox with composing e-mail templates available with ABAP Platform 2020 SP02 The CDS view I_WorkflowTaskURL provides the deep link (WorkflowTaskURL) for a workflow task instance (WorkflowTaskInternalID).

The construction of the URL relies on different parameters which have to be maintained in table SWP_URL_CONFIG(maintenance view SWP_URL_CONFIG_V), before the WorkflowTaskURL will be generated with CDS view I_WorkflowTaskURL. The URL is not generated unless an entry with ID = MYINBOX is maintained. You will also find an according IMG activity under SAP Customizing Implementation Guide > SAP NetWeaver > Application Server > Business Management > SAP Business Workflow > Basic Settings (Workflow System) > Maintain URL Settings

Yamaki
Explorer
0 Kudos
Thank you very much for your response. I understand that URL configuration is required in advance. I understand that the following steps will achieve this: The URL is generated according to the URL configuration content. The generated URL is stored in I_WorkflowTaskURL (key item: Workflow ID). The URL retrieved from I_WorkflowTaskURL is included in the approval request email body. Regarding step 3, is my understanding correct that the key item, Workflow ID, can be obtained from the following in the workflow container?