Skip to main content

Hi,

is there an API to delete activity from order?

 

 

I have audit API for my account, but the deletion it self is not visible in inbound data audit, so I can’t take API from there.


Thank you!

Regards

Torsten

Hi Torsten,

 

Please try below API for deleting Service Order open activity.

Please replace the order_id and demand_id with appropriate value.

 

<root xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <session email="" alias="">
    <state bc_name="Service_Order">
      <action name="data">
        <main>
          <row>
            <order_id dtype="string">SVXXXXXXXXXX@@1</order_id>
          </row>
        </main>
        <demand_labor>
          <row delete="true">
            <demand_id dtype="int">123</demand_id>
            <bo_search_keys>
              <item>
                <name>demand_id</name>
                <value>123</value>
              </item>
            </bo_search_keys>
          </row>
        </demand_labor>
      </action>
    </state>
  </session>
</root>

 

Regards,

Joshua


Hi Joshua,

 

perfect!! Thank you a lot, exactly what I needed. 👍

 

Regards

Torsten


Thanks, Joshua!

One point, I don’t think this can be or should be used on the primary activity, right?  I know that is not what he is doing but just to be clear for others in case they want to use it as well.

 


Thanks, Joshua!

One point, I don’t think this can be or should be used on the primary activity, right?

 

correct, but thats okay (at least for my problem) :)


You are correct Phil. Primary Activity should not be deleted.


Reply