URL With Send Mail
URL With Send Mail
You have a workflow with a Send Mail step. In the email you want to display two URLs.
The first URL is long so you need to split it between 3 container elements (URL_1, URL_2 and
URL_3). The URL container elements will be filled from the workflow container at runtime
and you want to display the link with text.
The second URL is a simple website address and again you want to display the link with text.
In our example the workflow ID is WS00300112 and the task ID used in the Sendmail step is
TS00307945 (Step 24).
Fig 1.
In this step the email will be sent to an email address ([email protected] in our
example). You can see the binding between the workflow container and the task container at design
time.
Fig 2.
The task description below shows the task description text. You must enter the task description in
order to create or view the URLs.
Fig 3.
Fig 4.
Looking in the Container tab of the task you can see the three container elements to hold the long
URL (URL_1, URL_2 and URL_3). At runtime these container elements are filled due to the binding
displayed in Fig 2.
Fig 5.
To maintain the URLs in the task description click on the Description tab and then on the Change
text button. In this view you can see the components of the two URLs.
Fig 6.
Click on the 'Change text' button as highlighted in Fig 6 above. Once this is done it opens a text
editor which is workflow MS Word. You need to change the editor via the menu Goto -> Change
Editor.
Fig 7.
Fig 8.
As detailed in note 1800946 you must include the MAIL_HTML command with format /:
For your HTML the /* (SAPscript comment) has to be the value of the format column, not
part of the text. This format line only becomes visible within the old editor.
See that both URLs use the SAPscript comment line. Also take note how the URLs are built. The first
URL combines the values contained in the three container elements to build the URL while the
second URL is simply a web address.
If you look at the workflow technical log you can see the runtime values of the three container
elements.
Fig 9.
Fig 10.