Skip to main content
Question

Add Attachments(PDF, Images) on Service Order using Astea API

  • June 2, 2026
  • 4 replies
  • 26 views

Forum|alt.badge.img+7

We are using Astea Alliance Version 14 HF29.
We are integrating one ERP system with Astea and requirement is to create a new service order with attachments which contain PDF and Images files and ser the others parameters like File Type, Restriction Level.

 

We are able to create a service order successfully using Astea API but we are not able to attach document on that new service Order. We are don’t know which xml or API need to use to accomplish this task.

If anyone can help or guide us to resolve this that will be very helpful.

If you have latest document for V14 HF29 that will also be helpful.

4 replies

Phil Seifert
Ultimate Hero (Employee)
Forum|alt.badge.img+24
  • Ultimate Hero (Employee)
  • June 3, 2026

Hi Firdosh,

This is a question already posed in another Community topic:

Existing API to send email + attachment | IFS Community

The outcome of that discussion is that there would have to be a custom solution as not an existing API to do this.

 


Forum|alt.badge.img+7

Hello ​@Phil Seifert ,

 

Is there ant workaround or how i can create custom API for attachments.

I tried below xml. but it’s failed 

 

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email="" alias="">
<state bc_name="ap_attachments">
<!-- Action 1: Initialize context for the Service Order -->
<action name="execmacro">
<attribute bo_name="main" macro_name="att_retrieve"/>
<!-- Replace with your actual Service Order ID -->
<attribute dtype="string" value="SV2603130005@@1"/>
</action>

<!-- Action 2: Create the attachment with specific metadata -->
<action name="execmacro">
<attribute bo_name="main" macro_name="NewWithParams" />
<macro_params>
<columns>
<value>entity_name</value>
<value>attachment_name</value>
<value>attachment_content</value>
<value>type_id</value>
<value>class_1_id</value>
<value>restriction_level</value>
<value>descr</value>
</columns>
<values>
<value>Service_Order</value>
<value>document.pdf</value>
<value><![CDATA[BASE64_ENCODED_CONTENT]]></value>
<value>PDF</value> <!-- File Type -->
<value>VALUE1</value> <!-- Classification 1 -->
<value>customer</value> <!-- Restriction Level -->
<value>Standard Documentation</value> <!-- Comments -->
</values>
</macro_params>
</action>

<!-- Action 3: Save the record to the database -->
<action name="execmacro">
<attribute bo_name="main" macro_name="Save" />
</action>
</state>
</session>
</root>

Phil Seifert
Ultimate Hero (Employee)
Forum|alt.badge.img+24
  • Ultimate Hero (Employee)
  • June 4, 2026

Hi Firdosh,

I don’t have a work around and hopefully someone in Community might have such but in the event no one does, this should be raised as Services Request to IFS Services (not support) for custom development if possible.

 


Forum|alt.badge.img+7

Hello ​@Phil Seifert ,

Could you please help me.

How i can export data for API from Service Order Attachment Screen (attached on my initial request)?