Skip to main content
Answer

Automate adding a contract to a  SV for a customer in Allaince 

  • November 9, 2025
  • 3 replies
  • 32 views

Forum|alt.badge.img+7

To automatically add a contract on a SV for a specific customer , which would be the  best approach

  • procress flow
  • Using middlwware ( Boomi etc ) to add contarct on that SV ?

Many Thanks

Best answer by Joshua Liem

Hi Nazish, 

The Customer is covered under multiple contracts.

In this case, please create a process flow looking for Service Order of the customer where open date between 6 PM to 8 AM and contract ID is null.

Please use below API for the process flow.

 

<root xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns="http://astea.com.schema.bc.Service_Order">
  <session email="" alias="">
    <state bc_name="Service_Order">
      <action name="data">
        <main>
          <row number="1">
            <order_id dtype="string">SVxxxxxxxxxx@@x</order_id>
            <cconth_id dtype="string">ContractID</cconth_id>
          </row>
        </main>
      </action>
    </state>
  </session>
</root>

 

Regards,

Joshua

3 replies

Forum|alt.badge.img+12
  • Superhero (Employee)
  • November 10, 2025

Hi Nazish,

You can create a Contract for a specific customer. Every time you create Service Order for that customer, contract should be added. You don’t need PF to do that.

 

Regards,

Joshua


Forum|alt.badge.img+7
  • Author
  • Sidekick (Customer)
  • November 10, 2025

Hi Nazish,

You can create a Contract for a specific customer. Every time you create Service Order for that customer, contract should be added. You don’t need PF to do that.

 

Regards,

Joshua

It needs to happen for all jobs open for a customer between 6PM to 8AM


Forum|alt.badge.img+12
  • Superhero (Employee)
  • Answer
  • November 10, 2025

Hi Nazish, 

The Customer is covered under multiple contracts.

In this case, please create a process flow looking for Service Order of the customer where open date between 6 PM to 8 AM and contract ID is null.

Please use below API for the process flow.

 

<root xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns="http://astea.com.schema.bc.Service_Order">
  <session email="" alias="">
    <state bc_name="Service_Order">
      <action name="data">
        <main>
          <row number="1">
            <order_id dtype="string">SVxxxxxxxxxx@@x</order_id>
            <cconth_id dtype="string">ContractID</cconth_id>
          </row>
        </main>
      </action>
    </state>
  </session>
</root>

 

Regards,

Joshua