Create Custom Mail Template-Setting up wfMessage based upon workflow

Hi,
I have some 4 workflows and each should send out an email as soon as it is triggered.I have created one template which has some metadata fields,I need to dynamically change the wfMessage and wfMailSubject based upon the workflow,i wanted to understand how can we set the value of these 2 variables in the template.Do i need to create a custom component for each workflow with resource Strings and set this value and create a template and call this template.Has anyone implemented anything like this before?

Got you.
I think it's a question what the template should serve for. Usually, you want to modify it to change the content of the message - you may add a logo, re-organize the email, etc.
But often, you use variables wfMessage and wfMailSubject to parametrize the text and the subject of the message. Note that this is not mandatory, and you could modify the logic of the template so that those two variables are derived from other workflow content (something like move to the code of the template a code like) <$if dWfName like "Workflow1"$>
<$wfMessage="Message for Workflow 1"$>
<$elseif dWfName like "Workflow2"$>
<$wfMessage="Message for Workflow 2"$>
...It will work, but somehow, I don't like it - I think these two should be parameters set up by workflow, not something contained in the template, but that is my opinion.

Similar Messages

  • Create custome mail template- very newbie

    hi,
    can any one guide me how to create a custom email template?, i am very new to the UCM, i have read everything about the component manager but i still do not what type of component and what to write inside it.
    thanks

    Hi,
    For the workflow email notifications.
    If you use the Component Wizard tool to create a new blank component.
    Then add a resource to it. Select template as the option, can leave other settings as default and then click next. Next screen can leave default as well.Click next.
    On this screen there is a Select button at the top right, use this. From the pop window select the show all check box, there are a few templates in the system you can work from. The one for the reviewer step is called "REVIEWER_MAIL", search for and select this.
    Change the Name at the top of the window to something unique. Click ok and return to main component window.
    The name you gave the field before is now show in the right hand pane.
    If you launch the editor on that slection takes to the code and can modify the template (will have all code from main template).
    Enable the component.
    Call the new template from workflow
    &lt;$wfNotify("user","user", "CUSTOM_NAME_YOU_USED")$&gt;
    Regards
    Edited by: Stuart S on Oct 30, 2008 2:54 PM

  • HTML Editor for creating e-mail templates for SAP Cloud for Customer

    Hi Techies,
                     Is there any preferred software for creating e-mail templates to use with SAP Cloud for Customers ? I mean to avoid unnecessary errors when creating standard e-mail template which are recognized unified manner within the system.
    Will appreciate with rewards points for best support.

    Here is a template for the wire-frame that we used. We went with pure HTML tables so that the response could be multi-client compatible. We found that additional code caused issues with certain clients. In the middle table, we had linked icons to our respective self serve properties and additional support options for Chat and our own Support Community.
    The content of the email will be placed where #Text# is. Our email responses include the content and the basic signature. We also provide our detailed legal disclaimer at the bottom with additional links if needed.
    Let me know if you have any questions.
    Thanks!
    Josh
    <font face="Trebuchet MS, Arial, Helvetica, sans-serif" size="2">
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:50px;">  </td>
        <td style="border: 1px solid #9b9b9b; border-bottom: none;">
           <div style="color: #6a6a6a; display: block; margin: 10px; padding: 10px;">#Text#<!--Placeholder for email content.--></div>
          <p style="color: #6a6a6a; display: block; margin: 10px; padding: 10px;">Chat:       <br />
          Support Community: <br />
          Customer Care: </p>
        <p> </p></td>
      </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:500px; border: 1px solid #9b9b9b;">
    <table width="100%">
      <tr>
      <td width="50" valign="middle"><!--Include links to self serve options here--><img src="XXXXX" alt="XXXX" title="XXXX" style="border:0 none;" /></a></td>
            <td valign="middle">
            <p style="color: #6a6a6a; display: block; margin: 5px;"><!--Include links to self serve options here-->Support is also on: &#13;
      </td>
      </tr>
    </table>
        </td>
        <td style="border-right: 1px solid #9b9b9b;"> </td>
      </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:50px;">  </td>
        <td border="1" style="border: 1px solid #9b9b9b; border-top:none;"><p> </p>
        <p style="color: #6a6a6a; display: block; margin: 10px; padding: 10px;"><strong>NOTICE:</strong> Legal Disclaimer   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse a
    magna non libero accumsan luctus. Donec purus metus, mollis nec
    commodo ac, hendrerit pulvinar lectus. Sed quis elit felis. Duis ut
    eros urna. Morbi fringilla nunc vitae enim mollis in sodales nisl
    tincidunt. Etiam orci risus, convallis ut tristique in, vestibulum sed
    ligula. Donec quis sodales purus. Donec dignissim lacus dignissim
    justo fermentum eu volutpat justo consectetur. Fusce metus massa,
    fringilla sed malesuada nec, vulputate quis lectus. Vestibulum et
    venenatis ante. Vestibulum non dui dolor, et tempus magna. Cras
    tincidunt cursus enim, id convallis tortor placerat eu. In in magna ac
    dui pretium placerat. Duis tortor leo, viverra ac tincidunt nec,
    bibendum non nunc.
    Curabitur et turpis vel nulla vulputate ullamcorper id sed eros. Donec
    orci lacus, elementum nec vulputate et, varius id neque. In ac magna
    ac lectus gravida consectetur. Class aptent taciti sociosqu ad litora
    torquent per conubia nostra, per inceptos himenaeos. Etiam egestas,
    diam vitae molestie vestibulum, magna orci ultricies nisi, id luctus
    lorem nulla nec lorem. Donec tincidunt vehicula ipsum eget mattis.
    Donec dictum vulputate mi ut facilisis. Vivamus varius augue fermentum
    libero iaculis quis dictum ante consequat. Aenean luctus massa sit
    amet nulla sagittis id fermentum sem luctus. Vivamus odio diam,
    lacinia ac egestas eget, tincidunt et sem. Sed a ante dui, eu
    scelerisque eros. Nullam et faucibus odio. Nunc posuere auctor sem, ac
    blandit ipsum molestie sit amet. Nullam nec luctus arcu. </p>
        <p> </p></td>
      </tr>
    </table>
    </font>

  • CREATING E-MAIL TEMPLATE

    Hi,
    Can any body help me in creating E-mail Template step by step. And adding the attributes from the escalation fields.  And assigning that template to Service Manager Profile.  Thanks a lot.
    shrik.

    Try starting here:
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/7f/ccdc39227a6301e10000000a11402f/frameset.htm

  • Creating a Mail Template for Letters

    Hi,
    When I am trying to create a new Mail Template for Letters in DEV it is asking me to enter the Package Name. What package name should I enter?
    When I am trying to do the same thing in the QA system it is giving out the error saying
    “Changes to Repository or cross-client Customizing are not permitted
    Choose Display Object or Cancel
    SO we cant create a new mail template for letters in QA.?
    I need your valuable suggestions

    Hi Gregor,
    Thanks for the reply.
    We are trying to use the Letters for our Campaign.
    SO I am planning to use the Mail Template .
    we are creating the Target Groups using the Segment Builder and want to assignt the letters as hte communication form.
    So how can we take print out using the mail form created  and assign it to the target group with the last name and address printing on the page.
    Thanks for the patience
    RGDS

  • Creating a mail template to send from iPad 2.

    I need to set up a template email which I can send from my iPad to respond to rental enquiries for my holiday house.  I can easily do this from my desktop but so far have been unable to do this in mail.  Is there a way?  I've also tried to create a template in Pages thinking I would send it as an attachment but I can only choose the templates provided and I can't change them - ie. background colour and amount of photos.  Please help?? 

    Hi Gregor,
    Thanks for the reply.
    We are trying to use the Letters for our Campaign.
    SO I am planning to use the Mail Template .
    we are creating the Target Groups using the Segment Builder and want to assignt the letters as hte communication form.
    So how can we take print out using the mail form created  and assign it to the target group with the last name and address printing on the page.
    Thanks for the patience
    RGDS

  • Create E-mail Templates

    I have no access to NetWeaver,so can I create an E-mail Template with ByDisign Studio or notepad?  can anybody tell me how to create this template?
    Best Regards
    Thanks

    Chaowei.
    I realize this is about a month old, but in case anyone is searching for this, yes, you can create this in Notepad or any HTML Editor.
    You'll set by entering in basic HTML - you can specify placeholders in the syntax of [...] - for example [CustomerInvoice-ID], which corresponds to the schema of the data (<ID> is a child element of the root <CustomerInvoice> element).
    So something as simple as:
    <html>
    <body>
    Please find invoice [CustomerInvoice-ID] attached.
    </body>
    </html>
    Would be a valid (though not very useful) e-mail template.

  • Creating a Mail "template"

    Is there any way in Mail to set up a template format (adding special statements to the bottom of each e-mail)so that these wouldn't have to been manually for each New Mail via "cut and paste"?

    I'll bite on this one.
    I'd like to migrate my office from Eudora to Mail.app, but one of the few things I like about Eudora more is the "Printed for..." bit that shows up at the bottom of printed emails. Is it possible to add this to each user's default printing template? Thanks in advance for any help.
      Mac OS X (10.4.7)  

  • How to make Customized mail template

    Hello Experts,
    My requirement is to write a mail template with the below conditions-
    In the Rfx collaborator list if one specific person exists then send a specific mail  for approval ,  and for others send another mail for approval .
    Can it be done with EXISTS macro ? If yes , pls help me with a bit details
    Thanks in Advance
    Regards
    Sudipta

    Hi,
    EXISTS macro might not work for this sitatuion. unfortuantely there is no easy way to do this.
    One way is to attempt to send a seperated email from the script, skipping all SAP Sourcing mail messagin capabilities..  there are some discussions in this forum around that.. plesae take a look..
    Thanks, baski

  • Creating Custom Mail Folders

    Is there a way to add folders to personalize/categorize mail by a specific folder, i.e., work, Joe-Bob?
    Thank you.

    This can be done with an IMAP account - creating a server stored mailbox for the account with the email client used on your computer for accessing the account. All server stored mailboxes with an IMAP account will be available automatically when accessing the account with the iPhone's Mail client with all server stored mailboxes kept synchronized with the server automatically with each email client used to access the account.
    This is not possible with a POP account.

  • Export custom step properties for all sequences based upon expression

    I want to export only my custom step properties to a database. I realize this can be done one at a time but I'm looking for a more general, quicker solution since I have dozens of custom steps and many instances of each. I can probably do this, but if someone has already developed a method I could use the info. Thanks.
    kph 

    Hi kph,
    Unfortunately, there is not a straightforward way to solve this
    problem.  TestStand does not currently support any database
    configuration through programmatic means.  The customized database
    must be configured ahead of time.  I would handle the issue by
    setting up this database in configure >> Database Options. 
    The quickest solution for customization would be to duplicate one of
    the default Schemas (for example, Generic Recordset) under the "Schema"
    tab.  Under the statements tab, you can then cut out all of the
    unwanted statements (it sounds like you'll want to cut out most of
    them) and add new statments for your custom steps.   In this
    step, be sure to reference your custom step type for each statement in
    the "Types to Log" field.
    Under the Columns/Parameters tab, you can then add all of the properties you would like to save for each configured statement.
    At this point, you can use TestStand to create a SQL script file to
    match the Schema you just created.  From the Schema tab, you can
    select the Build .sql File dialog box.  After saving and running
    the script, you will have successfully created the required tables for
    the custom schema. 
    At this point, the custom properties should log to the database.
    Hope this helps in your application development!
    Andrew W. - Applications Engineer

  • Custom RTF templates in Oracle Core Contracts ..

    Hello:
    We want to create custom RTF templates in Oracle Core Contracts along with custom data templates.
    We do not want to use XSL-FO templates since we are finding this too complex to work with ... also the fact that the XML data is being generated by some internal OAF processes that we cannot control.
    This is unnecessarily too complex for us.
    Can we create our own reporting using XML -Publisher and integrate it in the system ?
    Any thoughts on this would be appreciated ... Yesh

    Srini:
    I did read those pages and unless I am missing something .. it is basically saying the follwing:
    Copy the seeded XSL-FO templates and make changes to them and then upload them back. I have no real access to the xml data since it is somehow pre-generated. I do not have a choice of using RTF templates along with the ease of Word based formatting.
    The above process goes against the way in which we can write our own reports in XMLP:
    (a) Create our own data templates (use our own SQL)
    (b) Create our own layout templates (using RTF or XSl_FO)
    So I am stuck into undertsanding .... OAF, Java API's ,etc that I should not have to understand to generate a report ...
    yesh

  • E-Mail template format with example

    Hi All,
              Could someone provide me with mandatory things to consider when creating e-mail templates in SAP Cloud for Customer ? I want the specific format and tool used to create it.
    An example HTML document will help me to look into HTML tags used and the way its designed.
    Will appreciate with reward points for best support.

    Hi Gowri,
    here is the template:
    <html>
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    </head>
    <body>
    <span class="variable">/FormCampaignExecutionPlaceholder/ContactPerson/FormattedName</span>
    <p>Please join us for the conference!</p>
    <p><a href="mailto:{/FormCampaignExecutionPlaceholder/MailingPermissionDenyMailToURI}">Click here to be removed from future marketing mailings.</a></p>
    <p><a href="http://{/FormCampaignExecutionPlaceholder/LinkTracking/TrackingURI}www.sap.com/HANA">News about SAP HANA</a></p>
    </body>
    </html>
    Kind regards, Janina

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • Text Format in Mail Templates

    Hi Experts,
    I have a requirement , wherein I need to make certain word in my custom mail template( palin text) as bold or underline( or both) , I tried Mail template Macros FORMAT for this but it didnt work , If anyone knows how can we achieve this please share.
    regards,
    VIshal Goel

    Hi Vishal,
    Please try below format, so that it may work.
    FORMAT("b", "Title:") %TOKEN1%
    FORMAT("b", "Posted By:") %TOKEN2%
    LINK("View Full Message", "%LINK123%")
    The above mentioned will work only when HTML Mail option is selected on the user account level under Account properties.
    Please let me know if the issue still exists.
    Also Please go through the below link, it will be useful for you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001d645f-008f-3010-7b8f-e7935e46733a?overridelayout=true
    Thanks,
    Raj.

Maybe you are looking for