Oracle Migration Tool On Demand Guide > Migrating Workflow Rules and Action Sets > Elements and Sections in the Workflow Action Sets Output File >

Send Email Workflow Action Set


Table 60 describes the elements and sections in the Send Email workflow action set XML output file.

Table 60. Elements and Sections in the Send Email Workflow Action Set XML File
Element or Section
Description

<data:WorkflowName>Opportunity Approval
</data:WorkflowName>

<WorkflowName> contains the name of the workflow rule with which this action is associated. When performing an Upsert or InsertOrUpdate operation for workflow actions, this name is used to find a matching workflow rule.

<data:WorkflowAction>
. . .
</data:WorkflowAction>

The <WorkflowAction> section contains the details of the workflow action.

<data:WorkflowAction>
  <data:Name>SendEmailTest</data:Name>
. . .
</data:WorkflowAction>

<Name> is the name of the workflow action.

<data:WorkflowAction>
. . .
  <data:Active>true</data:Active>
. . .
</data:WorkflowAction>

<Active> specifies whether the workflow action is active (true) or inactive (false).

<data:WorkflowAction>
 . . .
  <data:Order>2</data:Order>
. . .
</data:WorkflowAction>

<Order> is the order number for the workflow action within the set of actions on the workflow rule. It determines the order in which Oracle CRM On Demand invokes the sequence of workflow actions on the workflow rule.

<data:WorkflowAction>
 . . .
  <data:WorkflowSendEmailAction>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

The <WorkflowSendEmailAction> section contains the details of the Send Email workflow action.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:FromType>FROM_EMAIL_ADDRESS
    </data:FromType>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<FromType> corresponds to the From field in the user interface (UI). It indicates the source of the From email address. The valid values are:

  • FROM_EMAIL_ADDRESS. This value corresponds to the Current User option in the UI.
  • FROM_DEFAULT. This value corresponds to the Default Email Address option in the UI.
  • SPECIFIC_EMAIL_ADDRESS. This value corresponds to the Specific Email Address option in the UI.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:From></data:From>
. . .
  </data:WorkflowSendEmailAction>
. . .
</data:WorkflowAction>

<From> contains the From email address when <FromType> is set to SPECIFIC_EMAIL_ADDRESS.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:ReplyToType>CURRENT_USER_ADDRESS
    </data:ReplyToType>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<ReplyToType> corresponds to the Reply To field in the user interface (UI). It indicates the source of the email address that automatically appears in the To field when an email recipient replies to the email. The valid values are:

  • CURRENT_USER_ADDRESS. This value corresponds to the Current User option in the UI.
  • SPECIFIC_EMAIL_ADDRESS. This value corresponds to the Specific Email Address option in the UI.

If this field is left empty, then the From address in the email appears in the To field in the email response.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:ReplyTo></data:ReplyTo>
. . .
  </data:WorkflowSendEmailAction>
. . .
</data:WorkflowAction>

<ReplyTo> contains the email reply address when <ReplyToType> is set to SPECIFIC_EMAIL_ADDRESS.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:ToType>R</data:ToType>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<ToType> corresponds to the To field in the UI. It indicates the type of the To email address. The valid values are:

  • R. Corresponds to the Relative User on Record option in the UI.
  • U. Corresponds to the Specific User option in the UI.
  • E. Corresponds to the Specific Email Address option in the UI.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:To>O_Primary Owner Id</data:To>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<To> specifies the recipient for the email. The value of this element depends on the value in the <ToType> element, as follows:

  • If <ToType> is set to U (Specific User), then the <To> element contains the User ID of the user.
  • If <ToType> is set to R (Relative User on Record), then the value of the <To> element is defined, see Table 62.
  • If <ToType> is set to E (Specific Email Address), then the <To> element contains the expression defined for specific email addresses.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:Subject>New Opportunity
    </data:Subject>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<Subject> contains the subject line for the email.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:EmailFormat>HTML
    </data:EmailFormat>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<EmailFormat> specifies the format for the email message, which can be Plain Text or HTML.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:MessageBody>A new &lt;b>high potential&lt;/b> opportunity has been created.</data:MessageBody>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

<MessageBody> contains the content of the email message. For information about the HTML elements that are supported for use in workflow email messages, see Oracle CRM On Demand Online Help.

NOTE:  When updating or inserting a workflow action with an email message in HTML format, the left angle bracket (<) at the start of each HTML tag must be encoded as &lt;. At the end of the HTML tag, the right angle bracket (>) can be used, or it can be encoded as &gt;. When you extract a workflow action that has an email message in HTML format, Oracle CRM On Demand automatically encodes the left angle brackets in the extracted email message.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:ListOfWorkflowEmailTranslations>
. . .
    </data:ListOfWorkflowEmailTranslations>
. . .
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

The <ListOfWorkflowEmailTranslations> section contains the translation values for the email subject and message.

<data:WorkflowAction>
. . .
  <data:WorkflowSendEmailAction>
. . .
    <data:ListOfWorkflowEmailTranslations>
      <data:WorkflowEmailTranslation>
        <data:LanguageCode>ENU
        </data:LanguageCode>
        <data:SubjectTranslation>
New Opportunity
        </data:SubjectTranslation>
        <data:MessageBodyTranslation>
A new &lt;b>high potential&lt;/b> opportunity has been created.
        </data:MessageBodyTranslation>    
      </data:WorkflowEmailTranslation>
. . .
    </data:ListOfWorkflowEmailTranslations>
  </data:WorkflowSendEmailAction>
</data:WorkflowAction>

The <WorkflowEmailTranslation> section contains the translation values for the email subject and message, for one language:

  • <LanguageCode> contains the three-letter language code for a language. For the list of language codes, see Language Codes and Their Corresponding Language and Country.
  • <SubjectTranslation> contains the email subject line in the language identified by the language code.
  • <MessageBodyTranslation> contains the email message body text in the language identified by the language code.

Oracle Migration Tool On Demand Guide, Release 37 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.