How You Upload Attachments of Assets and Maintenance Programs Using a SOAP Service

This topic provides specifics for uptaking the ERP Object Attachment SOAP service for your assets and maintenance programs.

attachmentRows Attributes for Asset

Here's a table with attachmentRows Attributes for Asset information.

Attribute Name

Type

Description

UserKeyA

String

Asset Number.

UserKeyB

String

Keep this key with value #NULL.

UserKeyC

String

Keep this key with value #NULL.

UserKeyD

String

Keep this key with value #NULL.

UserKeyE

String

Keep this key with value #NULL.

AttachmentType

String

Valid values are: FILE, TEXT, URL.

Title

String

The title of the attachment.

Content

String

The following is an example. Your content may be different.

URL: https://www.google.com

Text: Use Lathe L123.

File: Encode the source data to a Base64 string (Base64 encoding).

Sample Payload for Asset

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/types/" xmlns:erp="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/">
<soapenv:Header/>
<soapenv:Body>
<typ:uploadAttachment>
<typ:entityName>ASSET</typ:entityName>
<typ:categoryName>MISC</typ:categoryName>
<typ:allowDuplicate>Yes</typ:allowDuplicate>
<!--Zero or more repetitions:-->
<typ:attachmentRows>
<!--Optional:-->
<erp:UserKeyA>FL Caterpillar</erp:UserKeyA>
<!--Optional:-->
<erp:UserKeyB>?</erp:UserKeyB>
<!--Optional:-->
<erp:UserKeyC>?</erp:UserKeyC>
<!--Optional:-->
<erp:UserKeyD>?</erp:UserKeyD>
<!--Optional:-->
<erp:UserKeyE>?</erp:UserKeyE>
<!--Optional:-->
<erp:AttachmentType>TEXT</erp:AttachmentType>
<!--Optional:-->
<erp:Title>BVM_Attachment1</erp:Title>
<!--Optional:-->
<erp:Content>Hello World1</erp:Content>
</typ:attachmentRows>
</typ:uploadAttachment>
</soapenv:Body>
</soapenv:Envelope>

attachmentRows Attributes for Maintenance Program

Here's a table with attachmentRows Attributes for Maintenance Program information.

Attribute Name

Type

Description

UserKeyA

String

Organization Code.

UserKeyB

String

Program Code.

UserKeyC

String

Keep this key with value #NULL.

UserKeyD

String

Keep this key with value #NULL.

UserKeyE

String

Keep this key with value #NULL.

AttachmentType

String

Valid values are: FILE, TEXT, URL.

Title

String

The title of the attachment.

Content

String

The following is an example. Your content may be different.

URL: https://www.google.com

Text: Use Lathe L123.

File: Encode the source data to a Base64 string (Base64 encoding).

Sample Payload for Maintenance Program Operation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/types/" xmlns:erp="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/">
<soapenv:Header/>
<soapenv:Body>
<typ:uploadAttachment>
<typ:entityName>MAINTENANCE_PROGRAM</typ:entityName>
<typ:categoryName>MISC</typ:categoryName>
<typ:allowDuplicate>Yes</typ:allowDuplicate>
<!--Zero or more repetitions:-->
<typ:attachmentRows>
<!--Optional:-->
<erp:UserKeyA>MNTALM</erp:UserKeyA>
<!--Optional:-->
<erp:UserKeyB>BDC</erp:UserKeyB>
<!--Optional:-->
<erp:UserKeyC>?</erp:UserKeyC>
<!--Optional:-->
<erp:UserKeyD>?</erp:UserKeyD>
<!--Optional:-->
<erp:UserKeyE>?</erp:UserKeyE>
<!--Optional:-->
<erp:AttachmentType>TEXT</erp:AttachmentType>
<!--Optional:-->
<erp:Title>BVM_Attachment</erp:Title>
<!--Optional:-->
<erp:Content>Hello World</erp:Content>
</typ:attachmentRows>
</typ:uploadAttachment>
</soapenv:Body>
</soapenv:Envelope>