Skip to main content
Solved

ExecMacro action API list of Available Macro's


Forum|alt.badge.img+10

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

Best answer by Phil Seifert

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.

 

View original
Did this topic help you find an answer to your question?

3 replies

Phil Seifert
Ultimate Hero (Employee)
Forum|alt.badge.img+24
  • Ultimate Hero (Employee)
  • 1364 replies
  • Answer
  • May 8, 2025

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.

 


Phil Seifert
Ultimate Hero (Employee)
Forum|alt.badge.img+24
  • Ultimate Hero (Employee)
  • 1364 replies
  • May 8, 2025

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.

 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 70 replies
  • May 8, 2025

Hi Phil,

 

Ah, thanks thats indeed a good source to checkout.

 

Robin


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings