Skip to main content

Hi,

I know there is a way to get macro names that you can use in API with ExecMacro action, but don’t know it anymore.

I was looking for macro to set Service orders to Need audit or pending invoice or invoice with macro.

I was using APPROVEREJECTORDERBATCHSINGLE macro, but does not work as i expected

<root
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email="" alias="">
<state bc_name="Service_order">
<action name="execmacro">
<attribute bo_name="main" macro_name="APPROVEREJECTORDERBATCHSINGLE"/>
<attribute dtype="string" in_var="" value="{order_id}"/>
<attribute dtype="string" in_var="" value="afteraudit"/>
<attribute dtype="string" in_var="" value="Auto Need Audit"/>
<attribute dtype="string" in_var="" value=""/>
<attribute dtype="string" in_var="" value=""/>
<attribute dtype="string" in_var="" value=""/>
</action>
</state>
</session>
</root>

 

Also where can i find all available Macro’s that can be used in ExecMacro action?

Robin

HI Robin,

I found this API in the API Examples module.

 

<!--
API Description: This API Completes existing service order using order id(order_id@@line no.) unless there are unfulfilled demands attached to the order
Each pattern surrounded by {} needs to be replaced with an actual value.
For more information on the Astea API syntax see topic API Language in the User Guides –> Integration Guide
-->

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email="" alias="">
<state bc_name="Service_Order">
<action name="execmacro">
<attribute bo_name="main" macro_name="BatchOrderCompletion" />
<attribute dtype="string" in_var="" value="{order ID}" />
<attribute dtype="array" in_var="" value="invoice_at;cc_output_to;cc_email_address_location" />
<attribute dtype="array" in_var="" value="now;;" />
</action>
</state>
</session>
</root>

Maybe this will help with your request.  I am personally not aware of a documented list of execmacro’s available.  I know you can find a lot of them in these API Examples but whether that is complete or not is another question.

 


Hi Robin,

Another source of API’s where many might have execmacro macro names are the Astea defined Import Template Wizards.  Please see below which has the macro RENEW for Customer Contracts.

 


Hi Phil,

 

Ah, thanks thats indeed a good source to checkout.

 

Robin


Reply