Email - Generate Transaction Email
post
/rest/v19/commerceDocumentsOraclecpqoTransaction/{id}/actions/_action_process_email_print
Use this endpoint to retrieve the objects required to send a transaction email.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
Root Schema : commerceDocumentsOraclecpqoTransaction-ProcessActionEmailPrintRequest
Type:
Show Source
object-
cacheInstanceId:
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db. -
criteria:
object Query Definition
Title:
Query DefinitionCaptures the query definition for the current resource request. -
delta:
boolean
Title:
DeltaThe boolean parameter to request a delta response for data as well as state in the context of current criteria. -
langAttributeValue:
integer
Title:
Language Attribute ValueLanguage attribute value for the print document -
languagePreference:
string
Title:
Language Attribute ValueLanguage attribute value for the print document -
revisionId:
string
Title:
Revision IdThe string parameter that contains the revision information.
Nested Schema : Query Definition
Type:
objectTitle:
Query DefinitionCaptures the query definition for the current resource request.
Show Source
-
actions:
array actions
Array of actions names, whose state is requested in the state object response.
-
childDefs:
array childDefs
-
childGroups:
object Group Query Criteria
Title:
Group Query CriteriaCriteria for grouping transactional line items. -
enableHierarchy:
boolean
Parameter value should be true to execute hierarchy search and sort. Default value is false.
-
excludeFieldTypes:
array excludeFieldTypes
Array of field names that you want to exclude in the response.
-
expand:
array expand
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
-
expandedDomainCriteria:
array expandedDomainCriteria
Map of dynamic menu field names, whose expanded domains are requested in the state object response, to a map of criteria, which are meant for filtering dynamic menu options. The criteria map should contain the node(s) information when dynamic menus on LIG are expanded. The criteria map also contains the search string. The search strings support contains, and are case-insensitive.
-
expandedDomains:
array expandedDomains
Array of field names, whose expanded domains are requested in the state object response.
-
expandNodes:
boolean
Boolean value that only be available when enableHierarchy is true. True = all nodes will be expanded; False = All nodes will be collapsed.Default value is true.
-
fields:
array fields
Array of field names that you wanted returned in a request.
-
groups:
array groups
Array of group names, whose state is requested in the state object response.
-
layoutRules:
string
Enum value that specifies the state of layout rules which needs to be fetched and executed. By default, this value is set to NO_RULE indicating that layout rules is not executed. enum: [DEPLOYED, UNDEPLOYED, NO_RULE]
-
limit:
integer
Positive integer value that specifies the maximum number of items returned by the server.
-
nodesExceptionList:
array nodesExceptionList
Array of document_number, recording the nodes that violate current expandNodes flag
-
offset:
integer
Non-negative integer values that specifies the index of the first item to be returned. The offset index begins at 0. By default, the offset is 0, which returns all items starting from the first item in the collection.
-
orderBy:
array orderBy
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
-
parentFields:
array parentFields
Array of field names to include in the parentFields of each resource row.
-
q:
string
Filter (a ???where???clause) to restrict the items returned in the collection. By default, no filtering is applied.
-
rootFields:
array rootFields
Array of field names to include in the rootFields of each resource row.
-
state:
boolean
Boolean value that specifies whether to calculate the state property. By default, this value is set to false indicating that state is not calculated.
-
totalResults:
boolean
Boolean value that specifies whether to calculate the totalResults property. By default, this value is set to false indicating that totalResults is not calculated.
Nested Schema : actions
Type:
arrayArray of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type:
Show Source
array-
Array of:
object Child query criteria.
Title:
Child query criteria.Captures the query criteria for the child resource.
Nested Schema : Group Query Criteria
Type:
objectTitle:
Group Query CriteriaCriteria for grouping transactional line items.
Show Source
-
attributeName:
string
The attribute name to group by.
-
expandGroups:
boolean
Whether to expand groups.
-
groupLimit:
integer
The maximum number of groups to return.
-
groupOffset:
integer
The group offset for pagination.
-
itemsOffsetList:
object itemsOffsetList
Additional Properties Allowed: additionalPropertiesMap of group name and integer which will be offset for that group.
Nested Schema : excludeFieldTypes
Type:
arrayArray of field names that you want to exclude in the response.
Show Source
Nested Schema : expand
Type:
arrayArray of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomainCriteria
Type:
arrayMap of dynamic menu field names, whose expanded domains are requested in the state object response, to a map of criteria, which are meant for filtering dynamic menu options. The criteria map should contain the node(s) information when dynamic menus on LIG are expanded. The criteria map also contains the search string. The search strings support contains, and are case-insensitive.
Show Source
Nested Schema : expandedDomains
Type:
arrayArray of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type:
arrayArray of field names that you wanted returned in a request.
Show Source
Nested Schema : groups
Type:
arrayArray of group names, whose state is requested in the state object response.
Show Source
Nested Schema : nodesExceptionList
Type:
arrayArray of document_number, recording the nodes that violate current expandNodes flag
Show Source
Nested Schema : orderBy
Type:
arrayArray of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
Show Source
Nested Schema : parentFields
Type:
arrayArray of field names to include in the parentFields of each resource row.
Show Source
Nested Schema : rootFields
Type:
arrayArray of field names to include in the rootFields of each resource row.
Show Source
Nested Schema : Child query criteria.
Type:
objectTitle:
Child query criteria.Captures the query criteria for the child resource.
Show Source
-
name:
string
Rest alias name of the child resource this query belongs to.
-
queryDef:
object Query Definition
Title:
Query DefinitionCaptures the query definition for the current resource request. -
recursive:
boolean
Boolean value that specifies whether this query is a recursive expand on the current child resource query.
Nested Schema : itemsOffsetList
Type:
objectAdditional Properties Allowed
Show Source
Map of group name and integer which will be offset for that group.
Response
Supported Media Types
- application/json
Default Response
Root Schema : commerceDocumentsOraclecpqoTransaction-ProcessActionEmailPrintResponse
Type:
Show Source
object-
attachments:
array Attachments available
Title:
Attachments availableList of attachments available for email action. -
availableAttachmentsForMerge:
array Attachments available for merge.
Title:
Attachments available for merge.List of attachments available to merge for an email or print action. -
bccEmail:
string
Title:
Bcc EmailThe bcc email address(es) -
cacheInstanceId:
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db. -
ccEmail:
string
Title:
Cc EmailThe cc email address(es) -
comments:
string
Title:
CommentsThe comments to be sent in the email body -
fromEmail:
string
Title:
From EmailThe sender's email address -
fromName:
string
Title:
From NameThe sender's name -
generatedProposalAttachmentForMerge:
array Attachments Selected by Default.
Title:
Attachments Selected by Default.Default selected attachment for an email or print action. -
layoutVariableName:
string
Title:
Selected Redwood LayoutThe string parameter that contains selected redwood layout's variable name. -
revisionId:
string
Title:
Revision IdThe string parameter that contains the revision information. -
subject:
string
Title:
SubjectThe email subject line -
toEmail:
string
Title:
To EmailThe recipient's email address(es) -
toName:
string
Title:
To NameThe recipient's name -
warnings:
object warnings
Title:
warningswarning messages -
xslViews:
array XslViews
Title:
XslViewsCaptures the array of XslViews available in Process Action
Nested Schema : Attachments available
Type:
arrayTitle:
Attachments availableList of attachments available for email action.
Show Source
-
Array of:
object Attachment properties
Title:
Attachment propertiesCaptures the id and name of the attachment
Nested Schema : Attachments available for merge.
Type:
arrayTitle:
Attachments available for merge.List of attachments available to merge for an email or print action.
Show Source
-
Array of:
object Attachment properties
Title:
Attachment propertiesCaptures the id and name of the attachment
Nested Schema : Attachments Selected by Default.
Type:
arrayTitle:
Attachments Selected by Default.Default selected attachment for an email or print action.
Show Source
-
Array of:
object Attachment properties
Title:
Attachment propertiesCaptures the id and name of the attachment
Nested Schema : warnings
Type:
objectTitle:
warningswarning messages
Show Source
-
messages:
array Messages
Title:
MessagesArray of messages that have been generated for a specific object.
Nested Schema : XslViews
Type:
arrayTitle:
XslViewsCaptures the array of XslViews available in Process Action
Show Source
-
Array of:
object XslViewDef
Title:
XslViewDefCaptures the XslView available in Process Action
Nested Schema : Attachment properties
Type:
objectTitle:
Attachment propertiesCaptures the id and name of the attachment
Show Source
-
id:
integer
ID for the attachment.
-
name:
string
Name for the attachment.
Nested Schema : Messages
Type:
arrayTitle:
MessagesArray of messages that have been generated for a specific object.
Show Source
-
Array of:
string
warning message.
Nested Schema : XslViewDef
Type:
objectTitle:
XslViewDefCaptures the XslView available in Process Action
Show Source
-
id:
integer
ID for the attachment.
-
isMergeAttachmentSupported:
string
Is Merge Attachment supported for given XslView
-
name:
string
Name for the attachment.
Examples
The following example shows how to retrieve the objects required to send a transaction email by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/commerceDocumentsOraclecpqoTransaction/18498612/actions/_action_process_email_print
Response Body Sample
{
"comments": "",
"attachments": null,
"ccEmail": "",
"availableAttachmentsForMerge": [{
"id": 3023140360,
"name": "Attachment 1.pdf (Transaction - attachment 1)"
}
],
"subject": "",
"warnings": {},
"fromEmail": "myemail@sitename.com",
"xslViews": [{
"id": 3023140083,
"name": "english tempalte pdf output(Printer Friendly/History)",
"isMergeAttachmentSupported": true
}, {
"id": 3023140134,
"name": "English Document DOCX Ouput(Printer Friendly/History)",
"isMergeAttachmentSupported": false
}
],
"revisionId": "46,0",
"bccEmail": "",
"generatedProposalAttachmentForMerge": [{
"id": -2,
"name": "GENERATED PROPOSAL"
}
],
"toName": null,
"fromName": null,
"toEmail": ""
}