Values for email tokens

Dear Experts,
maybe it is a simple question however i am having difficulties finding the answer.
when i use tokens in emails, as for example %TECH_SUPPORT_EMAIL%, where is the value for these coming from? If I want to maintain it where do I look?
Thanks in advance.
venelin

Hi Venelin,
If you want to use the tokens in email then you have to set it in the script.
You can refer  to below example.
For a mail message like "User %RECIPIENT_FIRST_NAME%" have accessed the %DOCUMENT_ID% with the Supplier %VENDOR_NAME%"
To set the above token like RECIPIENT_FIRST_NAME, DOCUMENT_ID, VENDOR_NAME  use below script.
Properties props= new Properties();
recepientname= doc.getDocumentOwnerUserReference().getDisplayName();
documentId= doc.getDocumentId();
supplierName= doc.getVendorRef().getDisplayName();
documentDescription=doc.getDocumentDescription();
props.put(new String("TOKEN1"), "Currency changed to ADP");
props.put(new String("RECIPIENT_FIRST_NAME"), recepientname);
props.put(new String("DOCUMENT_ID"), documentId);
props.put(new String("VENDOR_NAME"), supplierName);
Let me know if this helps.
Thanks,
Raj.

Similar Messages

  • Passing the values for the tokens in oaf

    Hello,
    I have an application message with the text as "Employee &ENAME belong to the organization &ORGANIZATION".
    In framework, i have assigned this application message to a messagestyledtext and i want to pass the &ENAME and &ORGANIZATION values at runtime. Can anyone please guide me on this? I did as follows but didn't figure out how to assign this token to an application message.
    MessageToken[] msgtoken = {new MessageToken("EMPLOYEENAME",s_employeename),new MessageToken("ORGANIZATIONNAME",s_organizationname) }
    Thanks
    PK

    PK,
    A simple example to explain you more on this. Let say we want to pass two parameter to Token.
    String employeeName = (String)vo.getCurrentRow().getAttribute("EmployeeName");
    Number **employeeNumber** = (Number)vo.getCurrentRow().getAttribute("EmployeeId");
    String employeeNum = String.valueOf( employeeNumber.intValue());
    MessageToken[] tokens = { new MessageToken("EMP_NAME",  *employeeName* ),                 //1
    new MessageToken("EMP_NUMBER", employeeNum ) }; //2
    //And finally we pass there token value to below exception.
    OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens, OAException.CONFIRMATION, null);
    Thanks
    -Anil

  • List of values apprear for email alert while scheduling the report

    List of values apprear for email alert while scheduling the report

    Hi,
    Can you please expand on your issue?
    Cheryl

  • BPMOn: Is it possible to send email notification to different groups based on filter value for IDOC?

    Hi there,
                  I have setup the monitoring for idoc through interface monitoring and I am getting the alerts for the same. The alert is generated for different status values for the same idoc. Now my question is, is it possible to send email notification to two different groups based on the status values?? I mean for example , for a single idoc for some status values I want to send email notification to group1 only and for other status values I want to send notification to group2.Any help will be apperitiated.
    Thanks and regards,
    Rutvik Upadhyay

    We currently do not support that level of control for sending email notifications. If you think others are interested in this you should add an idea here: http://forums.adobe.com/community/formscentral?view=idea
    We use that to help us prioritize our work.
    Thanks,
    Randy

  • Error while reading UcdContext [trying to read / set application values for users]

    Hi,
    I am trying to write a program to store user selected values on NW7.3 Portal using "User Content Directory". I can see and read some code snippets on how to set and read the context but I am getting one error after another.
    The error message I am getting is
    "com.sapportals.portal.pcd.gl.PcdGlContext:service:[email protected]entClassLoader@84507ed@alive incompatible with interface com.sapportals.portal.pcd.gl.IPcdContext:sap.com/[email protected]der@f46d103@alive ". Code snippet is as given below at the end of the message.
    1) I tried different ways to have a lookup and always gave message as "look up not found" and for pcd:portal_content came up with above error.
    2) Once I read the UCD context, I would like to store some values based on user selection and store them. User may change the values whenever they like and I will be using the values for other purposes in another application.
    3) Has any one successful in setting and reading UCD Context in NW 7.3. Will it be possible to share such sample code as the code snippets at http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4a/8e1bce28e24dd8abd9f4de05e5587d/content.htm are not much of use unless I am able to read the UCD.
    Thanks for your help!
    Regards,
    Raju
    TestingUCD is my test application and the following is code snippet
    InitialContext initialContext = null;
    IPcdContext pcdCtx;
    Hashtable env = new Hashtable();
    env.put(UCD_INITIAL_CONTEXT_FACTORY, UCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
    try{
    initialContext = new InitialContext(env);
    //response.write("Before pcdCtx lookup");
    try {
    pcdCtx = (com.sapportals.portal.pcd.gl.PcdGlContext) initialContext.lookup("pcd:portal_content");
    } catch(Exception e){
    response.write("Some problem with lookup" + e.getMessage());

    Hi,
    There are quite few differences in the standard code snippet given by SAP Help on UCD and the once that you put above in the question.
    Below is standard snippet.
    Hashtable<Object, Object> env = new Hashtable<Object, Object>();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    IPcdContext.UCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, user);
    InitialContext ctx = new InitialContext(env);
    pcdCtx =  (IPcdContext) ctx.lookup("");
    ============================
    Check the ones highlighted in BOLD and compare them in your code. In your code when ur doing initial lookup you are not using the Correct class type cast for the returned lookup object!
    Your code shows as below:
    pcdCtx = (com.sapportals.portal.pcd.gl.PcdGlContext) initialContext.lookup("pcd:portal_content");
    But may be it shd have been something like below:
    pcdCtx = (IPcdContext) initialContext.lookup("pcd:portal_content");
    Pls verify and hopefully this resolves your issues around look up.
    Thanks,
    Swapna Priya.

  • Type Column for Email is not coming in Business context

    Hi All,
    I have enhanced the component ICCMP_BT_BCXT.
    I am able to get the required values in business context.
    I get hyperlinks in the TYPE column for customer follow-up/interaction record.
    But when email is sent then TYPE column does not show the hyperlink as Email.
    Other details like key/description are occuring for email.
    Any pointers on how to get the hyperlink for Email.
    Thanks and Regards,
    Gauri.

    Hi,
    by default when you get the hyperlink for interations record/followup document, its logical because on click on this hyperlink, system takes you to the interaction record/Followup document that is linked.
    If you set it to email, and if we provide hyperlink to it, where should it navigate on click of the hyperlink ?
    Its very easy to provide the hyperlink however it is very important to know what is required on click of the hyperlink, to give the right design .
    Thanks & Regards
    Suchita

  • How to Set default value for taxonomywebtagging control with terms and nested terms

    Hi,
    I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
    Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
    Any help would be greatly apprecited.
    Control code in aspx page:
    <td>
    <asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
    </td>
    <td>
    <Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    //Set the Business Unit Field
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GROUPName"];
    TermSet termSet = group.TermSets["TERMSETNAME"];
    Term term = termSet.Terms["TermA"];
    Guid termGuid = term.Id;
    term.SspId.Add(termStore.Id);
    term.TermSetId.Add(termSet.Id);
    term.AllowFillIn = true;
    term.AnchorId = countryGuid;
    term.IsMulti = true;
    Thank you.
    AA.

    Hi,
    According to your description, you want to set default value for TaxonomyWebTaggingControl.
    I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
    Here is the code snippet:
    TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GroupA"];
    TermSet termSet = group.TermSets["A"];
    Term term = termSet.Terms["A1"];
    TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
    TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
    TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
    TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
    TaxonomyWebTaggingControl1.AllowFillIn = true;
    TaxonomyWebTaggingControl1.IsAddTerms = true;
    TaxonomyWebTaggingControl1.IsMulti = false;
    TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
    Here is a detailed article for your reference:
    http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
    Feel free to Reply the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Error in saving customer information. Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    I was trying to create a text alert. I was calling following in jsp
    email.setContactPointPurpose(myLookUpCode); //say XXMY_SMS_SHIP
            PartyManager.createEmail(email, ApiConstant.CONTACT_POINT);
    Getting following exception:
    Error in saving customer information.
    Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.
    Error trace:
    oracle.apps.ibe.customer.CustomerException: Error in saving customer information. at oracle.apps.ibe.tcav2.Email.create(Email.java:187) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Caused by: oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) ... 11 more Error in saving customer information. oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    Tried this but it is giving the below error
    APP-FND-01242: Cannot read value from field PER_ASSIGNMENT_ID
    Cause: The field PER_ASSIGNMENT_ID could not be located or read.
    Action: This error is normally the result of an incorrectly-entered field name string in a trigger, or a field name string that does not uniquely specify a field in your form. Correct your trigger logic to precisely specify a valid field.

  • Firefox is having a problem with Linkedin. I get the error, error in parsing value for "backgroun" and for "filter"

    When trying to send messages in linkedin, firefox takes me back to the log in screen without sending the message. On the error console it shows the error; error in parsing value for "background" and error in parsing value for "filter". What is causing this?

    Pages does not support the Apple font used for color emoji, so that behavior is normal.
    With what app are you reading the yahoo mail?  There is really no guarantee than any other email service will show the special Apple font involved.
    You should have no problem putting emoji directly into Mail or Text edit via drag drop from the Character Viewer as shown below.
    You should also be able to upload graphics here easily by clicking on the camera icon.  My email is tom at bluesky dot org.

  • R/3- PI- webservice. Pass userid/password for Username Token from R/3

    Hello,
    We (SAP R/3) need to call Webservices from third party for which we are using SAP-PI system as the Middleware.
    The Password and ID for USERNAME TOKEN to be passed in the SOAP Header request needs to be sent through RFC in SAP R/3.
    The requirement is that SAP-PI should use this ID/password and prepare the USername Token in the SOAP Request header for the Webservice Call.
    Note: PI has AXIS framework installed on it.
    Can you please suggest as to what should be done? Request you to please provide the Custom Code / Detailed configuration etc. that is required to be done at the PI end.
    Note: I have searched the Forum but couldn't find anything a detailed information.
    Thanks & Regards,
    Abhishek Jolly

    XSLT-Mapping looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
       <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wsh="http://something/wsh">
         <soapenv:Header>
           <wsh:Context>
           <SessionId>
             <xsl:value-of select="/*[local-name()
    =MySoapFunction]/Parameters/Parameters
    [Scope[text()='XI'] and Name[text()='SessionID']]/Value"/>
          </SessionId>
         </wsh:Context>
        </soapenv:Header>
        <soapenv:Body>
         <wsh:MySoapFunction>
          <xsl:if test="count(./*[local-name()=MySoapFunction]/Parameters/Parameters)>1">
           <Parameters>
             <xsl:for-each select="./*[local-name()=MySoapFunction]/Parameters/Parameters">
               <xsl:if test="Scope!='XI'">
                 <Parameters>
                   <Scope><xsl:value-of select="Scope"/></Scope>
                   <Name><xsl:value-of select="Name"/></Name>
                   <Value><xsl:value-of select="Value"/></Value>
                  </Parameters>
                 </xsl:if>
               </xsl:for-each>
              </Parameters>
             </xsl:if>
           </wsh:MySoapFunction>
          </soapenv:Body>
    </soapenv:Envelope>
    I save XSLT to file.
    Input message that creates in XI and live only in BPM:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MySoapFunction xmlns:ns0="http://something/wsh">
        <Parameters>
            <Parameters>
                <Scope>XI</Scope>
                <Name>SessionID</Name>
                <Value>0123456789</Value>
                </Parameters>
            <Parameters>
                <Scope>otherScope</Scope>
                <Name>someParam</Name>
                <Value>someValue</Value>
             </Parameters>
        </Parameters>
    </ns0:MySoapFunction>
    In BPM's SendStep this message is used.
    2) Create ZIP archive with this XSLT file (one archive can contains many XSLT programs). And Import ZIP it into XI. You can see this in Imported Archive and list of filenames of Archived Program in XI.

  • Values for htmldb_item.text  field do not display in CSV output

    HTML DB experts,
    I have a report query with the following 2 items in the SELECT statement:
    wwv_flow_item.display_and_save(2, DOC_CD, 10) DOC_CD,
    htmldb_item.text(3, DOC_DESC, 50, 255) DOC_DESC
    I have enabled the CSV output for this report. The problem is, when I generate a csv file, only the DOC_CD (wwv_flow_item.display_and_save) displays. The values for the DOC_DESC (htmldb_item.text) do not display. What do I need to do to get the DOC_DESC to display?
    Thanks for your help.
    Message was edited by:
    [email protected]

    Items rendered using htmldb_item generate HTML tags on the form, not plain text. You are right, the CSV export excludes them.
    Your best best is to create another report region on some other page with the same query except replace all the htmldb_item() calls with regular columns i.e. make it a read-only report and use the "export: CSV" template and put up a link to this page at the bottom of your editable report (instead of the builtin CSV link). This way when you click on this link, it will generate your report and immediately offer to export it to CSV
    Hope this helps.

  • Default Values for Select-options In Webdynpro-ABAP

    Hi Freinds,
    Kindly,Help me in setting the Default values for the Select-options in Webdynpro ABAP.
    Here the Node and the Attributes are Created Dynamically, and then Displayed Select-options Component View.
    Regards,
    Xavier.P

    Xavier Reddy Penta sent me this question via email and I answered it directly yesterday. Here is the solution that I provided to him, so that it is stored with the original question:
    I believe your problem is that you are not setting the value into the range correctly.  You are setting it directly into the field symbol of the range like such:
    <FS> = L_STRING2.
    But ranges are deep objects. They have four fields: Sign, Option, High, and Low. This is from the online help:
    1.     sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.
    2.     option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen.
    3.     low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.
    4.     high of the data type defined after FOR. This column is designated for the upper interval limitation.
    So when you are moving the value into the field symbol you are setting it into the sign column.
    Here is an example of how you can access the components of the range:
    * create a range table that consists of this new data element
        lt_range_table =
          wd_this->lv_sel_handler->create_range_table(
               i_typename = l_typename ).
        IF l_fieldname = 'CARRID'.
          FIELD-SYMBOLS: <tab>         TYPE INDEX TABLE,
                             <struct>      TYPE ANY,
                             <wa>          TYPE ANY,
                             <option>      TYPE char2,
                             <sign>        TYPE char1,
                             <high>        TYPE ANY,
                             <low>         TYPE ANY,
                             <wa_values>   TYPE ANY.
          ASSIGN lt_range_table->* TO <tab>.
          APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
          <sign> = 'I'.
          <option> =  'EQ'.
          <low> = 'AA'.
        ENDIF.

  • Issue for email notification if insert html tag in question name

    I created discussion with name "Search highlight box issue in <textarea>" and receive the following email notice:
    You may need to add shielding tags in the title of the topic?

    In your XSL. I didn't find any Xpath expression to print values for these columns in table
    Transaction ID
    Transaction Type
    DateTime
    Status
    Code
    Message
    thanks,
    Satish
    http://soadiscovery.blogspot.com

  • Font in SVG file is not displayed correctly. "Error in parsing value for 'font-size'. Declaration dropped."

    I am trying to view an SVG file but it is unreadable because the font in the diagram is too large.
    In the Firefox error console, I see a CSS error:
    Error in parsing value for 'font-size'. Declaration dropped.
    What's happening?
    (Please cc your reply to [email protected])

    Firefox's Error Console (Ctrl+Shift+J) collects lots of those style rule warnings. Some style rules only work in particular browsers (such as "filter" which is for IE), so Firefox notes that it doesn't recognize them. This information is more for the web developer's benefit than yours, since you can't do much to change the site.
    To see serious errors and filter out the style warnings, click the Errors button at the top. Hopefully a lot less clutter.
    Anyway, are you asking because something isn't working correctly?

  • Need help in AP Invoice Workflow for Email Notifications

    Hi,
    Kindly a Urgent help is needed in Oracle AP Invoice Worklfow
    There is existing functionality of Attribute Timeout Days for AP Invoice Notification is set as 3
    So there is requirement after Timeout of 3 Days 3 Times Emails needs to be send.How to approach for that scenation?
    Any help will be needful for me?

    Thanks.
    But i can not use this table to pass th value in BDC as i am using standard report RFBIKR00 to create BDC session which takes values from structures only like BLFA1,BLFM2,BLFB1 etc.
    I need such structure for email id field.

Maybe you are looking for