Using Variable in Email

New to OWB.. Trying to include system info in emails..
example: database name, hostname etc...
Any help would be appreciated.

You can most definitely do this, but to get at stuff like database name, host name, etc, you'll probably need to write your own little PL/SQL function that can generate this info and return it as a string, outside the confines of the process flows.
So your approach could be something like this:
- create a variable in your process flow
- somewhere within the flow, chain in the call to your function that will generate you're required variable output. Bind the output to your PF variable.
- Bind the message body argument of your email operator to your PF variable.
That should do it - now your PF will call your proc, generate the output and bind to the var, which will be bound into the email message.
Now, if you want other stuff in the message too, you'll need to get that into the variable first as well, perhaps in your function.

Similar Messages

  • How to use variables in email messages ?

    Hi,
    I'm new to crystal server. I successfully able to schedule a report and send it thru email as an pdf attachment.
    I was wondering, How i can use email message body with some variables values from tables used in reports or crystal report parameters or formula fields from report?
    Is it possible?
    Thanks,
    Parv

    Parv Chana wrote:
    I think even with opendocument, I will be sending email to my users. The same question will still be there.
    Well I'm not an expert on this particular subject, so I could be wrong. My idea was that instead of sending the actual report in pdf form you send a link to the report on the server. From this point the users could select parameters/prompts and then view different data each time they access or refresh the link. Just a thought since sending a pdf is for the most part can't be changed once it was generated.
    Regards,
    Tim

  • Using variables to insert data in the table

    I want to insert datas in the table. I use constants,
    all the constants are stored properly in the table. But,
    when I use variables I get the error message
    "Too few parameters. expected 6".
    (I declared all the fields of the table as text only.)
    My program is "newt.jsp"
    <%@ page language="java" import="java.sql.*" %>
    <html>
    <head>
    <title>storing customer information in the database</title>
    </head>
    <body>
    <%
    String cno1 = request.getParameter("cno");
    String n1 = request.getParameter("n");
    String add11 = request.getParameter("add1");
    String add21 = request.getParameter("add2");
    String phone1 = request.getParameter("phone");
    String email1 = request.getParameter("email");
    Connection con = null;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:customer"," "," ");
    Statement statement1 = con.createStatement();
    Statement statement2 = con.createStatement();
    statement2.executeUpdate("create table cust1 (cno varchar(20),n varchar(20),add1 varchar(20),add2 varchar(20),phone varchar(20),email varchar(20))");
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values(cno1,n1,add11,add21,phone1,email1)");
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    catch(ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch(Exception e) {
    System.err.println(e.getMessage());
    finally {
         try {
         if(con!=null) {
              con.close();
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    %>
    <br><br>
    Mr./Ms. <%=n1 %> <br>
    Your datas have been stored.<br>
    </body>
    </html>
    Those who know answer please reply.
    My thanks in advance.

    I would expect your insert statement to be this:
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values('"+cno1+"','"+n1+"','"+add11+"','"+add21+"','"+phone1+"','"+email1+"')");
    If you just create a string, it's not going to fill in variables into the string by magic.

  • SAP PI: Using Variable Header  Binding in Receiver Mail Adapter

    Hello,
    I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping:
    Java Function Start -
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName1");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName2");
    DynamicConfigurationKey key3 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName3");
    conf.put(key1, new String("Test1"));
    conf.put(key2, new String("Test2"));
    conf.put(key3, new String("Test3"));
    Java Function End -
    As expected I see the Attributes and Parameters in the Dynamic Configuration in the SAP XI Monitor:
    Dynamic Configuration Informattion Start -
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Mapping der Request-Message
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName3">Test3</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName2">Test2</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Test1</SAP:Record>
      </SAP:DynamicConfiguration>
    Dynamic Configuration Informattion End -
    Now I configure my Receiver eMail Communication Channel and set the Variable Header Fields as follows:
       Adapter Specific Attributes: Checked
       Variable Transport Binding: Checked
       Variable Header (XHeaderName1): TSender
       Variable Header (XHeaderName2): TReceiver
       Variable Header (XHeaderName3): TOther
    With this configuration I would have expected three new Header fields in the Header of the eMail, the reicever gets. But they are not there.
    When I set standard attributes like THeaderTO, THeaderSubject a.s.o this works fine and the values are also set accordingly. Where it the mistake here?
    The PI version we are working with is PI 7.0 SP10.
    Your help will be highly appreciated.
    Thank you,
    Steffen

    Hi Luciana,
    Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
    Good luck!
    Cheers,
    Brad

  • ORA-04054 : using variable substitution for the database link name

    Hi,
    I need to use variable substitution for the database link name.
    Here is my command :
    declare
    GET VARCHAR2(50);
    begin
    select OIA_GET_DESIGNATION into GET from INFODRI.OMA_IN_ARTICLES;
    for rec in (select * from [email protected]_GET_DESIGNATION)
    LOOP
    dbms_output.put_line('TEN_CODE vaut : '||rec.ten_code);
    END LOOP;
    exception
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERREUR ORACLE DETECTEE : '||rec.OIR_CUR);
    DBMS_OUTPUT.PUT_LINE('Message Erreur : '||SUBSTR(SQLERRM,1,245));
    :crd := -1;
    end;
    When I run this programm, I receive the error :
    ORA-04054: database link REC.OIA_GET_DESIGNATION does not exist
    When I replace :
    for rec in (select * from [email protected]_GET_DESIGNATION)
    by :
    for rec in (execute immediate 'select * from tensions@'||rec.OIA_GET_DESIGNATION)
    I receive the error :
    PLS-00103 : Encountered the symbol "IMMEDIATE" while parsing.
    What can I do to resolv my problem ?
    Regards,
    Rachel

    What is the name of the DB Link and the name of the object you are selecting
    from?
    I find it easier to create a view on the remote object then use that in selects.
    e.g,
    Link Name = MyLink
    Object_name = Addr_Loc
    create or replace VIEW Rem_Addr_Loc AS
    select * from addr_loc@mylink;
    In the code I then use the view
    begin
      for C_Rec in (select * from Rem_Addr_loc)
      loop
         dbms_output.put_line('Rec: '|| C_Rec.Col1);
      end loop;
    end;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Using Namespace in Email Notifications

    Using Namespace in Email Notifications
    How Can I Use Namespace To Make Emails Sent to the Performer of Approval Tasks More Dynamic? 
    Here are two examples of the use of Namespace to dynamically populate email template with more information about the task.   
    Queue Approval Email Template
    See atttachment 1
       2. Queue Review Email Template
    See attachment 2   

    greenfan88 wrote:The Email template is just a template any variable value setting has to be done outside.This is not true for 6.0 and later versions. Replace the <Variable> block above with the code below and the fullname variable is set correctly within the email template.
    <Variable name='fullName'>
        <concat>
          <ref>lastname</ref>
          <s>,&#160;</s>
          <ref>firstname</ref>
          <ref>thePrefix</ref>
        </concat>
    </Variable>It seems just rules are not run and I am still wondering whether this is the expected behavior of 6.0 and later or I missed something?

  • Using  variables in etext template

    Hello All,
    I have a requirement where in I have to print totals in each trailer of a batch. I have to do totals only for a particular set of records.
    For doing sum there is a value column under each outboundpayment record. say /payment/value
    Output contains the following
    header
    body
    trailer
    for each batch the above 3 will be repeated .
    say for batch 01 there will be a header, 2 records in the body and 1 record in the trailer section. Now in the trailer section I have to print sum only for batch 01.
    When Iam doing sum(payment/value) it is printing the sum of all the batches as there is no condition while doing sum.
    outboundpaymentinstruction
    outboundpayment - 01
    outboundpayment - 01
    outboundpayment - 03
    outboundpayment - 03
    outboundpayment - 04
    outboundpayment - 04
    outboundpaymentinstruction
    Can anyone provide some guidance. Is there a possibility of using variables ?
    Regards,
    Swetha

    The pop-up menus you mention are not DW Template compatible.
    It's a good
    thing, really. Read this -
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    There are MUCH better ways -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "BezierBoy" <[email protected]> wrote in
    message
    news:fpsq3u$3mq$[email protected]..
    >I was about to post a similar question.
    >
    > I've been trying to build a template that includes
    navigation buttons that
    > will contain mouse-over behaviors, specifically pop-up
    menus. I can
    > successfully build the page as html, but when I try to
    build it as a
    > template,
    > the "Show Pop Up Menus" selection in the behaviors panel
    is grayed-out.
    >
    > What am I missing? I'm on a Mac running DW MX.
    >
    > Thanks,
    >
    > Jim
    >

  • Using variables in url

    I have created a php storing values in a mysql database.  I animate I call this php using window.open:
    window.open("http://localhost/send_and_update.php?Tid=26&dBA=78 ", "_self");
    This works fine, the dataset 26 78 is saved in the database.  But now I want to send values from variables in  i animate.  I try this:
    Var time=22
    window.open("http://localhost/send_and_update.php?Tid=time&dBA=78 ", "_self");
    This won't work.  Any suggestion?
    Svein-Tore

    Hi Darell!
    Now I have tried it, unfortunately it won't work.....  The browser gives me
    the followoing error:
    Unknown column 'time' in 'field list'
    This is in fact an error from php, not from animate.....  Maybe  I have to
    do this in a totally different way? Anyone who know how to write data from
    animate to a mysql database?
    Svein-Tore
    2014-02-20 1:39 GMT+01:00 heathrowe <[email protected]>:
        Re: Using variables in url  created by heathrowe<http://forums.adobe.com/people/heathrowe>in *Edge
    Animate CC* - View the full discussion<http://forums.adobe.com/message/6137980#6137980

  • Using variables within GETurl

    Having issues with getting a simple script working...
    I've created a 'flashvars' tag in my embed code (aid=test), which I simply wish to add to the end a GetUrl statement, contained in within a button (which is on the first level of the flash movie). This is the code I've added to the button...
    on (release) {
        getURL("http://www.platinumselect.com?id="+aid);
    But this doesnt seem to work!? Is there anything else I need to do?
    Thanks in advance! (p.s. using actionscript 2.0)

    Where are the 3 places?? I've got it in two at the minute.
    Date: Tue, 10 Nov 2009 07:53:55 -0700
    From: [email protected]
    To: [email protected]
    Subject: Using variables within GETurl
    in as2, there is no LoaderInfo class and you don't need to do anything in flash to parse the flashvars.
    but, as i mentioned in a duplicate post, you do need to define your flashvars in 3 places in your embedding html file.  failure to do that is the most common reason for a problem with flashvars.
    >

  • InfoSpoke data selection using variables in BW 3.5?

    Hi Gang!
    Can InfoSpokes select data using variables in BW 3.5?
    I would like create a "functional" delta process using an Full mode load and a variable to select "yesterday" from a date field. My ETL and external database partners would prefer to not deal with multiple before and after images from a single document item from a ODS. I was hoping I could use a variable selection against a date-time stamp, but I don't see how.
    AM I be forced to use a BADI?
    Thanks,
    John Hawk
    [email protected]

    One crude option would be to add an ABAP step prior to the infospoke execution, in this step code can be added to modify the corresponding record in table RSBSPOKESELSET (for selection values on date/time characteristics).

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • I forgot my icloud email password. I use a different email account for my AppleID.  How can i reset my Icloud email password?

    I need to reset my password for my iCloud email. I forgot the password because I made it about a year ago and forgot to write it down. I used my iCloud email which it *****n****[email protected] for many of my social media accounts. I have recently found out that if I want to reset my password for a social media account, that it will not go to my imessage. I have not yet set up *****n****[email protected] on the mail app, which is what I am assuming you have to have if you want social networks to email you on your mobile phone. I can not set up *****n****[email protected] on the mail app though, because I do not know the password. I also have a separate email for my AppleID account, and yes. I have reset the password for my applied account, to see if it would also reset my icloud email address password. Thank you, and I am sorry this was confusing.

    Applied.apple.com manage apple I'd. Input apple I'd. Send email authentication(and email should send to your rescue account) or authentication with security questions.... does not resolve your issue?

  • Why can't I use my icloud email for my apple ID?

    I want to get rid of my old email address and only use icloud but Apple ID says I cannot use my icloud email address. Why would they offer icloud email if a user cannot use it as their primary address?

    You can use iCloud as your primary email, just keep the other as a backup.
    It really isn't a good idea to rely on just one email address in case you get an unexpected problem, for example:
    https://discussions.apple.com/message/21146090#21146090http://

  • Error-Receiver File Adapter using Variable substitution when file is empty

    XI Experts,
    We are on PI 7.0, SP14.
    We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.
    Parameter in the communication channel for Handling empty message is "Ignore".
    Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.
    We are following getting error in the Adapter engine.
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file
    Thanks
    MP

    You can implement this by writing the module to throw an exception or whatever method you want to execute.
    If you don't want to receive an error message then module is suitable for you.
    Gaurav Jain

  • I used the wrong email account when setting up ios8 iCloud drive, how can I change it on my iphone5?

    I used the wrong email account while setting up iCloud drive during the upgrade to ios8, how can I change it on my iphone5?

    See the iCloud account FAQ:Creating an iCloud account: Frequently Asked Questions for info on managing the account towards the bottom of the FAQ.

Maybe you are looking for