Variable passing to an email activity

Hi,
In my simple process flow I have:
START--------TRANSFORMATION (procedure call)--------EMAIL ACTIVITY--------END
My procedure has an output parameter (which consists of an email address).
In the transformation, the output parameter is passed into a variable VAR1.
In my EMAIL activity, the TO_ADDRESS parameter is assigned VAR1.
My problem is, when I validate the processflow it comes up with the error:
"VLD-10034: Parameter TO_ADDRESS is bound to variable VAR1, but VAR1 has no default value set. For a processflow to be valid the bound parameter or variable should have a default value."
So I assigned the variable VAR1 a default value (I entered a valid email address), the processflow validates successfully, but when I run it, it fails with an error.
It's the variable that's causing a problem as when I hard-code an email address in the TO_ADDRESS parameter it runs without a problem.
Do you have any ideas why the variable is failing when a default value is set?
Thanks for any replies
Ansel

Hi Armands
I managed to sort this one out.
I stripped out the transformation from the processflow to simplify it as much as possible.
So I had:
START-------- EMAIL ACTIVITY--------END
The problem was where it was forcing me to enter a default value for the variable VAR1 (where VAR1 was assigned to the TO_ADDRESS parameter in the email activity).
I entered an email address as the default value in VAR1, and it failed. So I changed the value to 'aaa', and it failed.
But it DIDN'T fail when I entered '1' (even though the variable is of a string type).
So it's working now.
Thank you for taking the time to try to understand my problem.
Ansel

Similar Messages

  • (OWB 10.2) Can I send system date and other variables in EMAIL activity?

    Hi all,
    I using email activity successfully but now I would like to add some variables in the email such as sysdate. I´ve seen that this is posible by creating a post-map with the utl procedures. Is it posible to do this without a post-mapping?
    Thanks!

    Any ideas?

  • Error while using Email Activity

    Env:
    Win XP SP2
    SOA Dev Preview 10.1.3.1
    Jdev
    Prob: Am trying to send an email notification to my email id. I create a new BPEL Synchronous process and drag and drop the email activity into the process. I set the details into "to", "subject" and "body" parameters.
    And then I try to deploy the process.
    It throws an error "URI is not hierarchical"
    Can some one let me know the reasons for it.
    Thanx
    AJ

    Thanx Clemens,
    The xml that you had mentioned is same as the one I am working with. When I double click on the error in the error panel displayed in JDev, the cursor moves to the first line in the bpel file which says "<?xml version = "1.0" encoding = "UTF-8" ?>".
    I am still unclear as to what is the issue with the code that I am using. Following is my bpel file. Also, please let me know if there are any libraries or jar files to be included for using email activity in the bpel process.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Fri Aug 25 15:11:47 IST 2006
    Author: ashutoj
    Purpose: Synchronous BPEL Process
    -->
    <process name="SendEmailNotification"
    targetNamespace="http://xmlns.oracle.com/SendEmailNotification"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/SendEmailNotification"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:SendEmailNotification"
    myRole="SendEmailNotificationProvider"/>
    <partnerLink name="NotificationService"
    partnerRole="NotificationServiceProvider"
    partnerLinkType="ns1:NotificationServiceLink"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable"
    messageType="client:SendEmailNotificationRequestMessage"/>
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="outputVariable"
    messageType="client:SendEmailNotificationResponseMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in SendEmailNotification.wsdl) -->
    <receive name="receiveInput" partnerLink="client"
    portType="client:SendEmailNotification" operation="process"
    variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns1:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns1:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns1:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_1">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="string('hi')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Subject"/>
    </copy>
    <copy>
    <from expression="string('[email protected]')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:To"/>
    </copy>
    <copy>
    <from expression="string('checking mail from bpel pm')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:MimeType"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService"
    partnerLink="NotificationService"
    portType="ns1:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    <assign name="Assign_1">
    <copy>
    <from expression="'Mail Sent'"/>
    <to variable="outputVariable" part="payload"
    query="/client:SendEmailNotificationProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client"
    portType="client:SendEmailNotification" operation="process"
    variable="outputVariable"/>
    </sequence>
    </process>

  • Oracle soa 11.1.1.4 html email using email activity

    Experts,
    In one of my process i am generating tabular form content in email using html tags in transform xsl file and passing this xsl using ora:processXSLT funtion to contentbody variable of email activity. This works fine in *11.1.1.1* i am able to see email with tabular form content but *11.1.1.4* i am getting an email without content.
    In 11.1.1.4 if i pass some simple string to the content body then its working fine i am able to see am email with that string and if i pass the transformation which is having html tags int it, its not working . I have no idea
    why the html tags are not getting recognizing in 11.1.1.4 email activity.
    Can someone please help me to solve this issue.
    Note: its working very goodl in 11.1.1.1.
    here how i am calling fine in bpel
    *<copy>*
    *<from expression="ora:processXSLT('xsl/GenerateHTML.xsl',bpws:getVariableData('ResponseOutput','/ns4:Response'))"/>*
    *<to variable="varNotificationReq" part="EmailPayload"*
    query="/EmailPayload/ns6:Content/ns6:ContentBody"/>
    *</copy*
    and here is my transformation GenerateHTML.xsl
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:ns0="http://www.oracle.com/mgSOA"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:sample="http://www.oracle.com/XSL/Transform/java/oracle.sample.SampleExtensionFunctions"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl ns0 xsd xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket sample ldap">
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <xsl:text disable-output-escaping="yes">&lt;b&gt;s list &lt;/b&gt;</xsl:text>
    <xsl:text disable-output-escaping="yes">&lt;br&gt;</xsl:text>
    <xsl:text disable-output-escaping="yes">&lt;br&gt;</xsl:text>
    <table border="1">
    <tr bgcolor="#9acd32">
    <th width="80">EntityType</th>
    <th width="400">Organization name</th>
    <th width="100">Country</th>
    <th width="200">Code</th>
    <th width="200">Date</th>
    </tr>
    <ns0:Response>
    <xsl:for-each select="/ns0:Response/ns0:ResponseData">
    <tr>
    <ns0:ResponseData>
    <td width="80">
    <ns0:R_entitytype>
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="ns0:R_entitytype/@xsi:nil"/>
    </xsl:attribute>
    <xsl:value-of select="ns0:R_entitytype"/>
    </ns0:R_entitytype>
    </td>
    <td width="400">
    <ns0:R_orgname>
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="ns0:R_orgname/@xsi:nil"/>
    </xsl:attribute>
    <xsl:value-of select="ns0:R_orgname"/>
    </ns0:R_orgname>
    </td>
    <td width="100">
    <ns0:R_country>
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="ns0:R_country/@xsi:nil"/>
    </xsl:attribute>
    <xsl:value-of select="ns0:R_country"/>
    </ns0:R_country>
    </td>
    <td width="200">
    <ns0:R_Code>
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="ns0:R_Code/@xsi:nil"/>
    </xsl:attribute>
    <xsl:value-of select="ns0:R_Code"/>
    </ns0:R_Code>
    </td>
    <td width="200">
    <ns0:R_Date>
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="ns0:R_Date/@xsi:nil"/>
    </xsl:attribute>
    <xsl:value-of select="ns0:R_Date"/>
    </ns0:R_Date>
    </td>
    </ns0:ResponseData>
    </tr>
    </xsl:for-each>
    </ns0:Response>
    </table>
    <xsl:text disable-output-escaping="yes">&lt;br&gt;</xsl:text>
    <xsl:text disable-output-escaping="yes">&lt;br&gt;</xsl:text>
    </xsl:template>
    </xsl:stylesheet>

    Try using ora:toCDATA function, I had the same issue and this seemed to work.
    <copy>
    <from expression="ora:toCDATA(xdk:processXSLT('xsl/GenerateHTML.xsl',bpws:getVariableData('ResponseOutput','/ns4:Response')))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns6:Content/ns6:ContentBody"/>
    </copy>

  • IStore email activation link

    hi,
    I am working on email activation link on workflow builder.
    It is there in ISTORE workflow alert.
    I need to modify the hyperlink.
    Can any one suggest me ,how to go ahead.
    One of my colleague suggested to write a PLSQL function, to create a variable for that link.
    Can anyone suggest me how to create a dynamic link and pass it to the variable.
    Scenario:When a user register to the website , he needs to get a confirmation link and when we click on that.they need to go that site.
    Thanks,
    Sabitha

    Hi Alexis,
    You should be able log in https://cal.sap.com with the same user/password you log in SCN.
    Best regards,
    Stanimir

  • Attachments in Email Activity ?

    Hello Experts,
    I have a requirement where i need to get the records from database and send those records as an attachment in the email activity. I got the attachment slightly working...I assigned the Database output to the String Variable and attached that string to the Attachments...
    But the records are not in a correct aligned way in the file. Is there any way to align the data in a good aligned format ?
    i need to add an attachment may be in an xml or txt or csv...but the data should be atleast in an aligned way...
    Please help me...
    Thanks,
    Naresh

    Hi Anuj,
    But if i do that, the data is completely empty in the file...If i see in the flow trace, the data is getting assigned to the attachment variable...but in the email attachment, the file is completely empty....
    And as the above person said, if i need to write the file and read the same file; that wouldn't work i guess because, my BPEL would be polling the table , after getting the records it needs to send an email with the records it got as an attachment....
    I have a question here. So if we want to add attchments, is ora:readFile the only option of attaching the file ?
    Please help...i need to copy the records inthe input of my BPEL to the attachments in the email activity in BPEL..
    Thanks,
    Naresh

  • How to create Incoming Email Activity using BAPI or Function module

    To create an Incoming Email Activity using BAPI 'BAPI_ACTIVITYCRM_CREATEMULTI' or using 'CRM_ORDER_MAINTAIN' . what parameters i need to pass to a bapi.
    Suggest me with a solution.
    Regards,
    Sanjani

    For activity you must fill the following structures of 'CRM_ORDER_MAINTAIN'...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_activity_h             = t_activity_h
          iv_collect_exceptions = ''
        CHANGING
          ct_orderadm_h         = t_orderadm_h
          ct_input_fields       = t_input_fields
        EXCEPTIONS
          error_occurred        = 1
          document_locked       = 2
          no_change_allowed     = 3
          no_authority          = 4
          OTHERS                = 5.
    And at the end you must use also 'CRM_ORDER_SAVE' to performe the save.
    Regards.

  • How to add Attachments in Email Activity ?

    Hi,
    I have a requirement where i need to get the records from database and send those records as an attachment in the email activity. Please help me in this regard. I got the email activity working, but was unable to send the records as an attachment in the email activity..
    The email is working fine and in the attachment, the file is completely empty. Please help me how to do this...
    Thanks,
    Naresh

    I got the attachment slightly working...I assigned the Database output to the String Variable and attached that string to the Attachments...
    But the records are not in a correct aligned way in the file. Is there any way to align the data in a good alaigned format ?
    i need to add an attachment may be in an xml or txt or csv...but the data should be atleast in an aligned way...
    Thanks,
    Naresh

  • Text in the email body is going as attachment through email activity

    hi ,
    In my bpel email activity the body part is going as an attachment. Even a text like 'hi' also going as an attachment where i need to download the file and need to read the content.
    Can any one help is in solving this issue.
    Thank you
    Gayaz

    hi Jyotirmoy,
    this is the format i am using
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns3:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns3:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns3:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_2">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="concat(concat(concat('RLMS ',bpws:getVariableData('inputVariable','payload','/client:AarlmsDailyWeeklySubscriptionProcessRequest/client:input')),' Subscription Alert: Uploaded and modified files for folder'), bpws:getVariableData('folderPath'))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Subject"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('emailIds')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:To"/>
    </copy>
    <copy>
    <from>
    <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    </BodyPart>
    </MultiPart>
    </ContentBody>
    </Content>
    </from>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:MimeType"/>
    </copy>
    <copy>
    <from expression="string('NotificationAttachment1.html')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:BodyPartName"/>
    </copy>
    <copy>
    <from expression="string('hi')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:ContentBody"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService" partnerLink="NotificationService"
    portType="ns3:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    Thank you
    Gayaz

  • Email Activity Creation Problem

    I m new in MS Dynamic CRM 2013. I m trying to make a email activity on the update of a issue (case). but I m getting error at:
     CreateResponse resp = (CreateResponse)slos.Execute(reqActivity);
    I m attaching the whole code here:
    // <copyright file="PostIssueUpdate.cs" company="">
    // Copyright (c) 2015 All Rights Reserved
    // </copyright>
    // <author></author>
    // <date>1/29/2015 2:37:35 PM</date>
    // <summary>Implements the PostIssueUpdate Plugin.</summary>
    // <auto-generated>
    // This code was generated by a tool.
    // Runtime Version:4.0.30319.1
    // </auto-generated>
    namespace CrmVSSolution1.Plugins
    using System;
    using System.ServiceModel;
    using Microsoft.Xrm.Sdk;
    using System.ServiceModel.Description;
    using System.Text;
    using System.Collections.Generic;
    using System.Linq;
    // These namespaces are found in the Microsoft.Xrm.Sdk.dll assembly
    // found in the SDK\bin folder.
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.Xrm.Sdk.Discovery;
    using Microsoft.Xrm.Sdk.Messages;
    using Microsoft.Xrm.Sdk.Client;
    using Microsoft.Crm.Sdk.Messages;
    /// <summary>
    /// PostIssueUpdate Plugin.
    /// Fires when the following attributes are updated:
    /// All Attributes
    /// </summary>
    public class PostIssueUpdate: Plugin
    /// <summary>
    /// Initializes a new instance of the <see cref="PostIssueUpdate"/> class.
    /// </summary>
    public PostIssueUpdate()
    : base(typeof(PostIssueUpdate))
    base.RegisteredEvents.Add(new Tuple<int, string, string, Action<LocalPluginContext>>(40, "Update", "incident", new Action<LocalPluginContext>(ExecutePostIssueUpdate)));
    // Note : you can register for more events here if this plugin is not specific to an individual entity and message combination.
    // You may also need to update your RegisterFile.crmregister plug-in registration file to reflect any change.
    /// <summary>
    /// Executes the plug-in.
    /// </summary>
    /// <param name="localContext">The <see cref="LocalPluginContext"/> which contains the
    /// <see cref="IPluginExecutionContext"/>,
    /// <see cref="IOrganizationService"/>
    /// and <see cref="ITracingService"/>
    /// </param>
    /// <remarks>
    /// For improved performance, Microsoft Dynamics CRM caches plug-in instances.
    /// The plug-in's Execute method should be written to be stateless as the constructor
    /// is not called for every invocation of the plug-in. Also, multiple system threads
    /// could execute the plug-in at the same time. All per invocation state information
    /// is stored in the context. This means that you should not use global variables in plug-ins.
    /// </remarks>
    protected void ExecutePostIssueUpdate(LocalPluginContext localContext)
    if (localContext == null)
    throw new ArgumentNullException("localContext");
    // TODO: Implement your custom Plug-in business logic.
    IPluginExecutionContext context = localContext.PluginExecutionContext;
    IOrganizationService service = localContext.OrganizationService;
    if (context.InputParameters.Contains("Target") &&
    context.InputParameters["Target"] is Entity)
    // Obtain the target entity from the input parmameters.
    Entity entity = (Entity)context.InputParameters["Target"];
    if (entity.LogicalName == "incident")
    string entityDescription = "There is no note found";
    try
    if (entity.Attributes.Contains(""))
    entity.Attributes["description"] = entityDescription;
    CreateRequest reqActivity = new CreateRequest();
    Entity newEmail = new Entity("email");
    newEmail["subject"] = "This is for testing";
    newEmail["description"] = entityDescription;
    Entity ap = new Entity();
    Entity ap2 = new Entity();
    ap = new Entity("activityparty");
    ap["addressused"] = "[email protected]";
    Entity[] aryTo = { ap };
    newEmail["to"] = aryTo;
    ap2 = new Entity("activityparty");
    ap2["partyid"] = new EntityReference("systemuser", new Guid(""));
    Entity[] aryFrom = { ap2 };
    newEmail["from"] = aryFrom;
    newEmail["regardingobjectid"] = new EntityReference("account", new Guid(""));
    reqActivity.Target = newEmail;
    CreateResponse resp = (CreateResponse)slos.Execute(reqActivity);
    catch (FaultException ex)
    throw new InvalidPluginExecutionException("An error occurred in the plug-in.", ex);

    Hello,
    Could you please point to the part of your code where you have declared "slos"? I rechecked it twice and I see nothing. Also could you please provide an exception message that you are getting?
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Facing issue in Email Activity of the BPEL

    Hi All,
    I have created a Simple BPEL process, which will send email to a particular user(Email ID). The input of BPEL is taking the User's Email ID and pass the Email ID to "To" portion of Email Activity. Then the Email Notification service will send the message to user's mail ID.
    But I am getting error :
    <bpelFault>
    <faultType>0</faultType>
    <remoteFault>
    <part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Schema validation failed for message part Responses. Please ensure at the message sender level that the data sent is schema compliant. Can not find definition for element 'ArrayOfResponseType'</summary>
    </part>
    <part name="detail">
    <detail>Can not find definition for element 'ArrayOfResponseType'</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </remoteFault>
    </bpelFault>
    It is taking the proper User's Mail id.
    Any suggestion will be helpful to me.
    Thanks
    Sharmistha

    Hi All,
    I have created a Simple BPEL process, which will send email to a particular user(Email ID). The input of BPEL is taking the User's Email ID and pass the Email ID to "To" portion of Email Activity. Then the Email Notification service will send the message to user's mail ID.
    But I am getting error :
    <bpelFault>
    <faultType>0</faultType>
    <remoteFault>
    <part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Schema validation failed for message part Responses. Please ensure at the message sender level that the data sent is schema compliant. Can not find definition for element 'ArrayOfResponseType'</summary>
    </part>
    <part name="detail">
    <detail>Can not find definition for element 'ArrayOfResponseType'</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </remoteFault>
    </bpelFault>
    It is taking the proper User's Mail id.
    Any suggestion will be helpful to me.
    Thanks
    Sharmistha

  • Send Email using Email Activity in BPEL

    Hi Everybody,
    I am trying to send email using email activity in BPEL
    All that I have done is,
    1.dropped Email activity between recieve i/p and reply o/p in my bpel project
    2.written all parameters in it like Default, To ,from etc.
    3.made changes in the ns_emails.xml in .........bpel/systems/services/config & in .......integration/esb/config
    4.restarted SOA,Jdeveloper
    --> but I was not succeeded.
    So please provide me with complete solution like what parameters to pass in smtp server,port no,protocols etc and which file to change in which directory. my work is pending just because of this.
    I would be very grateful to you.
    thanks in advance.
    mansoor.

    hi Eric,
    thanks once again for your instant reply.
    but still I am not able to send Email from bpel so I would be requiring your more help.
    I have gone through below link where you helped someone last year.
    Email
    As per this link I have downloaded the patch and tried but no result.
    in above link I have not understood one thing
    "the ip-address of soa-suite-server is allowed to make use of the smtp?
    you need to add this address in the mailserver-config "
    which was said by you.
    So can you please provide me the details.
    Also I wanted to know how we can come to know that our SOA suite will allow mail server to send Email.how to link mail server to SOA suite etc.
    So please help me out .
    thanks in advance.
    mansoor.

  • Problem with Email Activity in BPEL

    I am relatively new to BPEL, and I'm trying to add an Email Activity. My problem is this:
    I can get the email to send, but I have to shut down the SOA Suite to make that happen.
    Any ideas on what could be causing this?
    Any help in this matter would be greatly appreciated.
    Thanks...

    Yes. The messages do seem to be all accumulating until the shutdown until the suite is shut down.
    I'm just beginning to play around with the Email activity, so I'm hard-coding all the parameters. We're currently using SOA Suite 10.1.3.1. I'm not using any attachments in the email, however, it seems that I can't turn the multi-part check box off. I un-check it, and apply, but when I go back into that screen, it's checked again.
    Here's the code for the email activity:
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns1:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns1:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns1:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_1">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="string('Testing BPEL Email Activity')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Subject"/>
    </copy>
    <copy>
    <from expression="string('[email protected]')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:To"/>
    </copy>
    <copy>
    <from expression="string('Test')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:MimeType"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService"
    partnerLink="NotificationService"
    portType="ns1:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    Thanks for your continued help.

  • Convert Incoming Email to Inbound Email Activity.

    Hello All,
    I want to convert Incoming Email(gmail) to Email Activity. So how to link the Email details (from, to, subject, content, body text) and Activity details (Account, Contact, Owner, Process_type) to create an Inbound Email Activity.
    Its not related to Outlook.
    Sample code will be helpful.
    Thanks & Regards,
    Sanjani

    Hi Sanjanni,
    This can be done using CRM_ORDER_MAINTAIN FM. Place a break point in CRM_ORDER_MAINTAIN. Try creating an email activity to see the parameters to pass.

  • Email Activity not sending emails for one domain - 10.1.3.4 MLR#10

    I have four domains in my BPELConsole. My evey BPEL process has CatchAll block and I'm sending email notification with fault details.
    Somehow, my BPEL processes from three domains are sending emails properly but myDomain4 is not sending emails even after successful execution of Email Activity.
    1) I have compared the Email code with processes in other domain and they are similar.
    2) orabpel.bpelnotification is not logging any error for this notification.
    3) I never received any email from this domain. There was no error in logs during domain creation.
    3) I am getting following in logs that sending email was successfully executed. It received Notification ID too
    <2010-09-22 07:24:44,530> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Fetched a queue connection from pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=4
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message) type = email caller = BPEL
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Notification ID 12834c63e81c20d0:-71064af1:42b35e5dab4:-7283
    Please help/hint for any possible solution/debugging.

    sometimes i have seen emails not being sent when the async invokes takes more time than the overall completion.. And yes, we might still see successful log as emails sent. FYI - I am with 10.1.3.3.1 MLR #8.
    did you try just creating a email only process? switch off all other processes in that domain and initiate only this email process to see what happens..

Maybe you are looking for

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable Dear All, I am Automating STATSPACK reporting by modifying the sprepins.sql script. Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statsp

  • Problems when importing multiple files into key frames

    I'm creating an interactive flash application that uses hundreds of individual renders from a 3d modelling app.  The image file size is 800 x 600.  Each sequence that i import to the stage is around 120 images and each gets put into a separate key fr

  • Very simple program

    All i wanna do is create an object...but im having compilation errors. import java.util.*; public class AtypeName{      public static void main(String args[]){           ATypeName a = new ATypeName(); }the errors are java:11: cannot resolve symbol sy

  • Spaces Glitch- looking for advice

    I've been running Leopard on 5 machines for about a month, and I've noticed this weird thing on all of them. Essentially it has to do with some kind of glitch where Spaces makes applications become "detached" from their windows,. It normally happens

  • HT2397 can i change the regional code after it has misstakenly been changed to a permanent ?

    i cant change my regional (DVD) code after i misstakenly have changed the code !!!!    can someone please help me ?