Add Attachments To Purchasing Documents Using ERP Object Attachment Service
Add Attachments To Purchasing Documents Using ERP Object Attachment Service
Add Attachments To Purchasing Documents Using ERP Object Attachment Service
Uploading Attachments................................................................................ 4
Security........................................................................................................ 6
Sample Payload........................................................................................... 6
ERP Object Attachment Service is a utility web service that you can use to
upload attachments to Oracle Procurement Cloud Purchasing purchase
agreements and purchase orders. Use this service to upload attachments
to documents at the desired level.
UPLOADING ATTACHMENTS
The uploadAttachment operation for ErpObjectAttachmentService uploads attachments for the
specified purchasing document.
The operation works only for purchasing documents created by import or web service. Documents
must be in Incomplete or Open status. If documents are in Open status, they must have bypassed
human approvals and must not have been communicated, acknowledged, or signed. They must also
not have a change document open or a change implemented.
Request Payload
ELEMENT NAME TYPE DESCRIPTION
Indicates the product application business entity name for which the upload of an attachment is desired. Valid
entityName String entity names for Purchasing are:
PO_HEADERS – for purchase order header attachments
PO_LINES – for purchase order line attachments
PO_LINE_LOCATIONS – for purchase order schedule attachments
PO_PA_HEADERS – for purchase agreement header attachments
PO_PA_LINES – for purchase agreement line attachments
PO_PA_PRICE_BREAKS – for purchase agreement price break attachments
Indicates the category name associated with a parent business entity for which the attachment upload is desired.
categoryName String Valid names for Purchasing are:
MISC – seeded miscellaneous category
TO_SUPPLIER – category of attachments addressed to the supplier
FROM_SUPPLIER – category of attachments from the supplier
TO_BUYER – category of attachments address to the buyer
TO_RECEIVER – category of attachments addressed to the receiver
TO_APPROVER – category of attachments addressed to the approver
TO_PAYABLES – category of attachments addressed to payables
PO_INTERNAL – category of attachments internal to the document
User option to specify whether duplicate file attachments are allowed. Valid options are: yes, no.
allowDuplicate String
List of elements, each containing the details of the attachment to upload. The details include the user keys,
attachmentRows attachment type, title, text, and URL.
attachmentRows Attributes
ATTRIBUTE NAME TYPE DESCRIPTION
Provide the document line number if you would like to load the attachment at the order or agreement line level.
UserKeyC String Specify the value #NULL if unused.
AttachmentType String Type of the attachment. Valid values are: FILE, TEXT, URL.
Indicates the title of the attachment. Attachments of any file type such as FILE, TEXT, or URL must have a title.
Title String Examples: SampleFile.doc, SampleFile.txt, SampleURL
The operation has the same document eligibility criteria as the upload operation.
Request Payload
ELEMENT NAME TYPE DESCRIPTION
Element containing the details of the Attachment to be downloaded. The details include the entity name,
attachment String category name and user keys.
Attributes
ATTRIBUTE NAME TYPE DESCRIPTION
Indicates the product application business entity name for which the download of an attachment is desired. Valid
EntityName String entity names for Purchasing are:
PO_HEADERS – for purchase order header attachments
PO_LINES – for purchase order line attachments
PO_LINE_LOCATIONS – for purchase order schedule attachments
PO_PA_HEADERS – for purchase agreement header attachments
PO_PA_LINES – for purchase agreement line attachments
PO_PA_PRICE_BREAKS – for purchase agreement price break attachments
Indicates the category name associated with a parent business entity for which the attachment download is
CategoryName String desired. Valid names for Purchasing are:
MISC – seeded miscellaneous category
TO_SUPPLIER – category of attachments addressed to the supplier
FROM_SUPPLIER – category of attachments from the supplier
TO_BUYER – category of attachments address to the buyer
TO_RECEIVER – category of attachments addressed to the receiver
TO_APPROVER – category of attachments addressed to the approver
TO_PAYABLES – category of attachments addressed to payables
PO_INTERNAL – category of attachments internal to the document
Provide the document line number if you would like to download the attachment at the order or agreement line
UserKeyC String level. Specify the value #NULL if unused.
Provide the schedule or price break number if you would like to download the attachment at that level.
UserKeyD String Specify the value #NULL if unused.
SAMPLE PAYLOAD
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:uploadAttachment
xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/types/">
<ns1:entityName>PO_HEADERS</ns1:entityName>
<ns1:categoryName>MISC</ns1:categoryName>
<ns1:allowDuplicate>yes</ns1:allowDuplicate>
<ns1:attachmentRows
xmlns:ns2="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/">
<ns2:UserKeyA>10503277</ns2:UserKeyA>
<ns2:UserKeyB>Vision Operations</ns2:UserKeyB>
<ns2:UserKeyC>#NULL</ns2:UserKeyC>
<ns2:UserKeyD>#NULL</ns2:UserKeyD>
<ns2:UserKeyE>#NULL</ns2:UserKeyE>
<ns2:AttachmentType>FILE</ns2:AttachmentType>
<ns2:Title>SampleFILE.doc</ns2:Title>
<ns2:Content>VGVzdGluZyBmaWxlIGF0dGFjaG1lbnQu</ns2:Content>
</ns1:attachmentRows>
</ns1:uploadAttachment>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:uploadAttachment
xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/types/">
<ns1:entityName>PO_PA_LINES</ns1:entityName>
<ns1:categoryName>MISC</ns1:categoryName>
<ns1:allowDuplicate>yes</ns1:allowDuplicate>
<ns1:attachmentRows
xmlns:ns2="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/">
<ns2:UserKeyA>10503277</ns2:UserKeyA>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:downloadAttachment
xmlns:ns1="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/types/">
<ns1:attachment
xmlns:ns2="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationServ
ice/">
<ns2:EntityName>PO_HEADERS</ns2:EntityName>
<ns2:CategoryName>MISC</ns2:CategoryName>
<ns2:UserKeyA>10503277</ns2:UserKeyA>
<ns2:UserKeyB>Vision Operations</ns2:UserKeyB>
<ns2:UserKeyC>#NULL</ns2:UserKeyC>
<ns2:UserKeyD>#NULL</ns2:UserKeyD>
<ns2:UserKeyE>#NULL</ns2:UserKeyE>
</ns1:attachment>
</ns1:downloadAttachment>
</soap:Body>
</soap:Envelope>
Worldwide Headquarters
500 Oracle Parkway, Redwood Shores, CA 94065 USA
Worldwide Inquiries
TELE + 1.650.506.7000 + 1.800.ORACLE1
FAX + 1.650.506.7200
oracle.com
CONNECT W ITH US
Call +1.800.ORACLE1 or visit oracle.com. Outside North America, find your local office at oracle.com/contact.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the contents hereof are
subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed
orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any
liability with respect to this document, and no contractual obligations are formed either directly or indirectly by this document. This document may not be
reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or
registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks
of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. 0918
Navigate to Purchasing Transactions from Reports
August 2018