cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add attachment in ServiceOrderCRMCreateRequest_sync

Former Member
0 Kudos
470

Hello

I want to add a PDF file as an attachment to a new service order transaction created by ServiceOrderCRMCreateRequest_sync webservice. Here is my AttachmentFolder segment which I'm sending along with other order details:

<AttachmentFolder actionCode="06">
    <Document actionCode="01">
      <PathName>./attachment1.pdf</PathName>
    <Name>attachment1.pdf</Name>
    <SystemAdministrativeData>
        <CreationDateTime>2019-05-09T00:00:00.00Z</CreationDateTime>
    </SystemAdministrativeData>
    <VisibleIndicator>true</VisibleIndicator>
    <VersioningEnabledIndicator>false</VersioningEnabledIndicator>
    <LinkIndicator>false</LinkIndicator>
    <MIMECode>application/pdf</MIMECode>
    <CategoryCode>2</CategoryCode>
    <FileContentBinaryObject mimeCode="application/pdf"
fileName="attachment1.pdf">
[Base64 encoded file content here] </FileContentBinaryObject>
</AttachmentFolder>

The file gets created in the Content Management and available there, but it's not being attached to the order automatically.

What am I missing or doing wrong here?

Best regards,
Alexey Kudinov

Accepted Solutions (1)

Accepted Solutions (1)

former_member222142
Active Participant

Hello Alexey,

consider the provide documentation about creation of a service order which explain these in detail.

For Enhancement the BADI CRM_SE_SRVCORDCRTRC is available for this operation.

Please consider the other chapter in "Manage Service Order In" as well.

Best Regards

Gerhard

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you, Gerhard!

We were able to enhance the corresponding BADI.

Best regards,

Alexey