0% found this document useful (0 votes)
148 views10 pages

Attachment Service

The document discusses an Oracle ERP Cloud service that allows automatic uploading and downloading of attachments to and from business applications. It supports attaching relevant documents to transactions like invoices, receivables, purchase orders. The service is secured and details its operations, parameters, sample requests and responses.

Uploaded by

mahesh patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views10 pages

Attachment Service

The document discusses an Oracle ERP Cloud service that allows automatic uploading and downloading of attachments to and from business applications. It supports attaching relevant documents to transactions like invoices, receivables, purchase orders. The service is secured and details its operations, parameters, sample requests and responses.

Uploaded by

mahesh patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Update: Now supports attachment download

from ERP Cloud


Introduction

The ERP Object Attachment Service supports the automatic upload and download of attachments
to and from Oracle ERP Cloud business applications. An attachment represents a collection of
meaningful business information that is commonly captured as a separate file, text, or Internet
URL. Attachments are used to supplement and provide key additional information to enhance
daily business operations and better track financials activities or events.

Business enterprises often require the capability to efficiently associate specific attachments with
a particular business entity or collection of business entities. For example:

 Payables invoices may need to be associated with supporting documents such as


duplicate invoices, payments, etc.
 Account receivables transactions may need to be linked to customer-centric documents
 Purchase orders may need supplementary files attached to indicate additional details
related to specific goods or services procured or the nature of the overall purchase.

The ERP Object Attachment Service delivers this real-time automated capability starting in
Oracle ERP Cloud Release 11 Patch Bundle 13.

Security Considerations
The ERP Object Attachment Service is secured through Oracle Web Service Manager (OWSM)
using the following policy:

oracle/wss11_saml_or_username_token_with_message_protection_service_policy.

The client must satisfy the message protection policy to ensure that the payload is encrypted or
sent over the SSL transport layer.

A client policy that can be used to meet this requirement


is: “oracle/wss11_username_token_with_message_protection_client_policy”

The user must have the duty role "ORA_FUN_FSCM_LOAD_INTERFACE_ADMIN_DUTY".

Design and Implementation


Constructing the Oracle ERP Object Attachment Service End Point URL

For illustration, to obtain the physical end point of any specific instance as a basis for the end
point URL:

1. Launch the ATK home page and sign in as a functional user.


2. Navigate to a dashboard or work area associated with the Payables Service.
3. In the Payables Invoice workbench, you can see a URL in the browser similar to
https://<hostname>.<domainname>/payables/faces/InvoiceWorkbench.

The “<hostname>.<domainname>” may be “https://<pod-


name>.<lba>.***.oraclecloud.com”.
In this example “<pod-name>.<lba>” is the hostname and “***.oraclecloud.com” is the
domain name.

a. In this URL, capture “https://<hostname>.<domainname>".

b. Append the static context root: "/publicFinancialCommonErpIntegration/


ErpObjectAttachmentService".

“https://<hostname>.<domainname>/publicFinancialCommonErpIntegration/
ErpObjectAttachmentService” is the WSDL URL for the Oracle ERP Object Attachment
Service.

Operation: uploadAttachment

The uploadAttachment operation uploads a file to the Oracle WebCenter Content (UCM) server
based on the document details specified and submits an ESS job to load and import the uploaded
files to an application table.

The following table lists the parameters for this operation:

Paramete
Parameter
r Mandator
Description Type
y
Name
(In/Out)
Entity Name of the attachment

Navigate to “Setup & Maintenance UI > Set


up Tasks > Manage Attachment Entities or
Manage Attachment Categories” to get valid java.lang.Strin
Entity Name IN Yes
entity names. For example, g
AP_INVOICES_ALL,
AR_BATCHES_ALL,
PO_CONFIG_COMPONENTS, etc. are
possible entity names.
Category Name of the attachment

Navigate to “Setup & Maintenance UI > Set


up Tasks > Manage Attachment Entities or
Category Manage Attachment Categories” to get valid java.lang.Strin
IN Yes
Name category names. For example, g
AP_SUPPORTING_DOC,
PAYMENT_SUPPORTING_DOC,
SCANNED_INVOICE_IMAGE, etc. are
possible category names.
Option to allow duplicate attachments
Allow java.lang.Strin
IN Yes
Duplicate g
Values: Yes or No
The details of the attachment are:

User Keys: UserKeyA, UserKeyB,


UserKeyC, UserKeyD, and UserKeyE. Please
see below for more information.

Attachment Type: URL, File, or Text

Title: Title of the document


Attachment java.lang.Strin
Content IN Yes
Rows g
File - This attachment type represents base64
encoding for file content being uploaded

URL - This attachment type represents an


Internet URL of your document

Text - This attachment type represents actual


text such as “Invoice requires further
approval”
Response java.lang.Strin
The response code in JSON format OUT
Code g

User Keys

The ERP Object Attachment Service supports up to five user keys as UserKeyA, UserKeyB,
UserKeyC, UserKeyD, and UserKeyE. These keys could provide different qualifying business
contexts for a chosen entity such as business units, legal entities, ledgers, etc.
Sample Payload

The following example illustrates the sample payload to upload an attachment to a payables
invoice:

<soap:Body>

<ns1:uploadAttachment
xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/shared/
model/erpIntegrationService/types/">

<ns1:entityName>AP_INVOICES_ALL</ns1:entityName>

<ns1:categoryName>AP_SUPPORTING_DOC</ns1:categoryName>

<ns1:allowDuplicate>yes</ns1:allowDuplicate>

<ns1:attachmentRows
xmlns:ns2="http://xmlns.oracle.com/apps/financials/commonModules/shared/
model/erpIntegrationService/">

<ns2:UserKeyA>Vision
Operations</ns2:UserKeyA>

<ns2:UserKeyB>SBP26</ns2:UserKeyB>

<ns2:UserKeyC>1377245736</ns2:UserKeyC>

<ns2:UserKeyD>#NULL</ns2:UserKeyD>

<ns2:UserKeyE>#NULL</ns2:UserKeyE>

<ns2:AttachmentType>TEXT</ns2:AttachmentType>

<ns2:Title>Sample</ns2:Title>

<ns2:Content>Testing Text</ns2:Content>

</ns1:attachmentRows>

<ns1:attachmentRows
xmlns:ns2="http://xmlns.oracle.com/apps/financials/commonModules/shared/
model/erpIntegrationService/">

<ns2:UserKeyA>Vision
Operations</ns2:UserKeyA>

<ns2:UserKeyB>SBP26</ns2:UserKeyB>
<ns2:UserKeyC>1377245736</ns2:UserKeyC>

<ns2:UserKeyD>#NULL</ns2:UserKeyD>

<ns2:UserKeyE>#NULL</ns2:UserKeyE>

<ns2:AttachmentType>FILE</ns2:AttachmentType>

<ns2:Title>SampleFILE.txt</ns2:Title>

<ns2:Content>VGhpcyBpcyBhIHNhbXBsZSBmaWxlIHRvIHRlbWVudCBvcGVyJTEUuDQo=</
ns2:Content>

</ns1:attachmentRows>

</ns1:uploadAttachment>

</soap:Body>

Figure 1: Sample request payload for the Payables Invoices attachment

Sample Response
<env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-utility-1.0.xsd" wsu:Id="Body-7Us3sWti6wcgpuLGJ1ixLw22">

<ns0:uploadAttachmentResponse
xmlns:ns0="http://xmlns.oracle.com/apps/financials/commonModules/shared/
model/erpIntegrationService/types/">

<result
xmlns="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/
erpIntegrationService/
types/">"Attachment1":"SUCCEEDED","Attachment2":"SUCCEEDED"</result>

</ns0:uploadAttachmentResponse>

</env:Body>

Figure 2: Sample response payload for the Payables Invoices attachment

Operation: downloadAttachment
The downAttachment operation download attachments from Oracle ERP Cloud. The attachments
are stored in Oracle WebCenter Content (UCM) server.

The following table lists the parameters for this operation:

Paramete
Parameter
r Mandator
Description Type
y
Name
(In/Out)
Entity Name of the attachment

Navigate to “Setup & Maintenance UI > Set


up Tasks > Manage Attachment Entities or
Manage Attachment Categories” to get valid java.lang.Strin
Entity Name IN Yes
entity names. For example, g
AP_INVOICES_ALL,
AR_BATCHES_ALL,
PO_CONFIG_COMPONENTS, etc. are
possible entity names.
Category Name of the attachment

Navigate to “Setup & Maintenance UI > Set


up Tasks > Manage Attachment Entities or
Category Manage Attachment Categories” to get valid java.lang.Strin
IN Yes
Name category names. For example, g
AP_SUPPORTING_DOC,
PAYMENT_SUPPORTING_DOC,
SCANNED_INVOICE_IMAGE, etc. are
possible category names.
Attachment The details of the attachment are: IN Yes java.lang.Strin
Rows g
User Keys: UserKeyA, UserKeyB,
UserKeyC, UserKeyD, and UserKeyE. Please
see below for more information.

Attachment Type: URL, File, or Text

Title: Title of the document

Content

File - This attachment type represents base64


encoding for file content being uploaded

URL - This attachment type represents an


Internet URL of your document

Text - This attachment type represents actual


text such as “Invoice requires further
approval”
Response A list of Attachments is returned along with java.lang.Strin
content.
OUT
Code g

User Keys

The ERP Object Attachment Service supports up to five user keys as UserKeyA, UserKeyB,
UserKeyC, UserKeyD, and UserKeyE. These keys could provide different qualifying business
contexts for a chosen entity such as business units, legal entities, ledgers, etc.

Sample Payload

The following example illustrates the sample payload to upload an attachment to a payables
invoice:

<soap:Body>

<ns1:downloadAttachment xmlns:ns1="http://xmlns.oracle.com/apps/financials/
commonModules/shared/model/erpIntegrationService/types/">

<ns1:attachment xmlns:ns2="http://xmlns.oracle.com/oracle/apps/financials/
commonModules/shared/model/erpIntegrationService/">

<ns2:EntityName>AP_INVOICES_ALL</ns2:EntityName>

<ns2:CategoryName>AP_SUPPORTING_DOC</ns2:CategoryName>

<ns2:UserKeyA>Vision Operations</ns2:UserKeyA>

<ns2:UserKeyB>SBP26</ns2:UserKeyB>

<ns2:UserKeyC>1377245736</ns2:UserKeyC>

<ns2:UserKeyD>#NULL</ns2:UserKeyD>

<ns2:UserKeyE>#NULL</ns2:UserKeyE>
</ns1:attachment>

</ns1:downloadAttachment>

</soap:Body>

Figure 3: Sample request payload for the Payables Invoices attachment

Sample Response

<env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
utility-1.0.xsd" wsu:Id="Body-JrKcnQO298dMjx93m40Lrg22">

<ns0:downloadAttachmentResponse xmlns:ns0="http://xmlns.oracle.com/apps/
financials/commonModules/shared/model/erpIntegrationService/types/">

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>FILE</ns0:AttachmentType>

<ns0:AttachmentContent>MTIzNCxUaWNrZXREDQoyMzQ1LFRpY2tldEUNCjQz
NDUsVGlja2V0Rg0K</ns0:AttachmentContent>

<ns0:FileName>abc.txt</ns0:FileName>

</ns1:result>

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>FILE</ns0:AttachmentType>

<ns0:AttachmentContent>MTIzNCxUaWNrZXREDQoyMzQ1LFRpY2tldEUNCjQz
NDUsVGlja2V0Rg0K</ns0:AttachmentContent>

<ns0:FileName>xyz.doc</ns0:FileName>
</ns1:result>

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>FILE</ns0:AttachmentType>

<ns0:AttachmentContent>MTIzNCxUaWNrZXREDQoyMzQ1LFRpY2tldEUNCjQz
NDUsVGlja2V0Rg0K</ns0:AttachmentContent>

<ns0:FileName>pqr.pdf</ns0:FileName>

</ns1:result>

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>WEB_PAGE</ns0:AttachmentType>

<ns0:AttachmentContent>WzIwMTUtMDMtMDRUMTY6Mjk6MDEuOTM0KzAw
OjAwXSBbVUNNX3Nlcn</ns0:AttachmentContent>

<ns0:FileName></ns0:FileName>

</ns1:result>

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>FILE</ns0:AttachmentType>

<ns0:AttachmentContent>IwojV2VkIFNlcCAyMSAwNDowNDo1MyBQRFQgMjAx
Ngo=</ns0:AttachmentContent>

<ns0:FileName>abc.txt</ns0:FileName>

</ns1:result>

<ns1:result xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/
shared/model/erpIntegrationService/types/" xmlns:ns0="http://xmlns.oracle.com/oracle/apps/
financials/commonModules/shared/model/erpIntegrationService/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:DownloadedAttachment">

<ns0:AttachmentType>TEXT</ns0:AttachmentType>

<ns0:AttachmentContent>77u/SGkgVGhpcyBpcyBhdHRhY2hlZA==</
ns0:AttachmentContent>

<ns0:FileName>ABJGJKJDK</ns0:FileName>

</ns1:result>

</ns0:downloadAttachmentResponse>

</env:Body>

Figure 4: Sample response payload for the Payables Invoices attachment

Conclusion
This summary highlights how to implement the ERP Object Attachment Service. It illustrates the
programmatic approach of uploading documents into the ERP Cloud from external systems. It
can be invoked through any integration platform.

You might also like