Email activity

how to use email activity in process flows of owb?

Hi,
select each parameter in the structure window and set its value in the property window.
Oracle does not provide a mail server, you have to use an existing one.
Ask your mail servers administrator if you are not sure about the parameters.
Regards,
Carsten.

Similar Messages

  • 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..

  • Email Activity Not sending email when BPEL process fails

    In 11g SOASuite I have a BPEL process which does the following,
    1) Receive response from client
    2) Email activity - Notify with an id received in the request as content
    3) Insert data into a table using db adapter
    Whenever db adapter has some key violations or issues, I notice that no emails are getting dispatched. When I look at EM console it displays that txn has been rolled back after 3rd step. I understand that but it makes me ask this question,
    How can I make the process to send an email at step2 irrespective of an error that happens down stream at step-3? How to make email activity not part of this Txn scope?
    It works as expected(emails are dispatched) when there are no issues at step-3.

    Hi,
    In order to not rollback your transactions, you need to hit a dehydration point, meaning, save your process into the db store and perform a commit until that point.
    It sounds like a simple process, so you can drag a checkpoint activity after the email activity.
    That is one option. Try, and see if it works for you.
    Arik

  • Email activity not working on Clients site

    Hi,
    I created a Bpel process that contains an email activity, It works fine when I am connected to the Oracle network through VPN and while i am in the Oracle office.
    But when I am at the clients site or connected through VPN, it doesnt work at all.
    when I configure my ns_emails.xml to Oracle's info, it works fine but when its configured to clients info, it doesnt work.
    I have configured ns_emails.xml and wf_config.xml
    This is my ns_emails.xml when I am at the clients site._
    note:_ Since I am not using the Default domain for deployment, I changed the &lt;Name&gt; under &lt;EmailAccount&gt; to cdmsd since I am deploying my Bpel processes to the cdmsd domain.
    ^&lt;EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"^
    ^ EmailMimeCharset=""^
    ^ NotificationMode="EMAIL"&gt;^
    ^ &lt;EmailAccount&gt;^
    ^ *&lt;Name&gt;cdmsd&lt;/Name&gt;*^
    ^ &lt;GeneralSettings&gt;^
    ^ &lt;FromName&gt;Oracle BPM&lt;/FromName&gt;^
    ^ &lt;FromAddress&gt;[email protected]&lt;/FromAddress&gt;^
    ^ &lt;/GeneralSettings&gt;^
    ^ &lt;OutgoingServerSettings&gt;^
    ^ &lt;SMTPHost&gt;mail.co.la.ca.us&lt;/SMTPHost&gt;^
    ^ &lt;SMTPPort&gt;25&lt;/SMTPPort&gt;^
    ^ &lt;/OutgoingServerSettings&gt;^
    ^ &lt;IncomingServerSettings&gt;^
    ^ &lt;Server&gt;mail.co.la.ca.us&lt;/Server&gt;^
    ^ &lt;Port&gt;25&lt;/Port&gt;^
    ^ &lt;Protocol&gt;SMTP&lt;/Protocol&gt;^
    ^ &lt;UserName&gt;[email protected]&lt;/UserName&gt;^
    ^ &lt;Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;Temp123&lt;/Password&gt;^
    ^ &lt;UseSSL&gt;true&lt;/UseSSL&gt;^
    ^ &lt;Folder&gt;Inbox&lt;/Folder&gt;^
    ^ &lt;PollingFrequency&gt;1&lt;/PollingFrequency&gt;^
    ^ &lt;PostReadOperation&gt;^
    ^ &lt;MarkAsRead/&gt;^
    ^ &lt;/PostReadOperation&gt;^
    ^ &lt;/IncomingServerSettings&gt;^
    ^ &lt;/EmailAccount&gt;^
    ^&lt;/EmailAccounts&gt;^
    and for wf_config.xml I only add one line_
    ^&lt;property name="oracle.bpel.services.notification.publisher_interval" value="1" /&gt;^
    I dont understand why its not working while I am on the clients site ?? any ideas ??
    could it be a network issue on their side ??

    I pinged my email server and I got the following:
    {size:12pt}
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),{size}
    Edited by: user9976478 on Jan 30, 2009 2:09 PM

  • 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

  • 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>

  • 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.

  • Email Address not picked in email activity

        Hello,
    We are trying to create a outbound email w.r.t Lead (BP has Email address) , now in the outbound email TO field is not populated with Email address of the BP , we have maintained copy control between lead and Outbound email activity too.
    All the other info is getting copied into Outbound email activity.
    Any inputs please?
    Merci
    Sweta

    Hi Swetha,
    Pls check this step once, am not sure this is exactly the solution, but have a try.
    Customer Relationship Management --> Basic Functions --> One-to-One E-Mail -->Assign Transaction Types --
    Or try as below once:
    1. find the Component name of the field
    2.  go to BSP_wd_cmpwb, component structure browser -- views---pick your component view -
         -- Request processing --- DO_PREPARE_OUTPUT  -- double click on ' fill_to_field( )'
    3. it will direct you to teh code, put the break point ''CRM_EMAIL_READ_PARTNER_ADDRESS'' and debug
    Regards

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow.
    I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body of the email to be sent.
    How can i do it now? Please advice. This issue is in 6.0.4 release.
    Edited by: 910070 on Feb 17, 2012 12:48 AM

    got the solution after so much research !
    in 6.0.4, only way we can change the value for the message body or subject is to change the associate email procedure. which is something like edx_rpt_email.

  • Attachment with Email activity....................

    Hi,I am using email activity with attachment if i deployed application on linux server than i am not able to send any attachment from email .so to resolve this issue i have to disable payload validation on EM console so if i don't do that than I got following error in my BPEL.
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Schema validation failed for message part EmailPayload. Please ensure at the message sender level that the data sent is schema compliant.</summary></part><part name="detail"><detail>Element not completed: 'BodyPart'</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>
    Thanks in advance please help me friends..so how to send email attachment_ without_ disable payload validation on EM console .................
    Edited by: 835461 on Aug 11, 2011 10:52 PM

    Hi,
    When i try to send the email with attachments i am getting the below error from soa console. Please help me.
    <Oct 5, 2011 3:00:00 PM IST> <Error> <oracle.soa.services.notification> <BEA-000000> <<MDBConsumer.processNotification>
    Error for message ID 0bed1e8d948a85ed:7cbdb9db:132d35431f7:-7ff6 ERROR MESSAGE : 0;
    But I am able to send the Emails without attachments.
    Where am I going wrong ..
    Thanks,

  • 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

  • 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>

  • (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?

Maybe you are looking for