Is there a way to configure a replenishment order such that it auto submits and creates the resulting RPLO IMOs, or is there an API command/macro that we can execute on a process flow to submit an open Replenishment Order?

Is there a way to configure a replenishment order such that it auto submits and creates the resulting RPLO IMOs, or is there an API command/macro that we can execute on a process flow to submit an open Replenishment Order?
Best answer by csjohnstone
Never mind! I figured it out.
Process Flow Data Query to get Open Replenishment Orders:
select replenish_order_id
from repl_order_hdr
where repl_order_stat = '100'
-- and warehouse_id = 'XXX'
Process Flow Action to Submit:
<root
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email="" alias="">
<state bc_name="replenishment">
<action name="data">
<main>
<row>
<replenish_order_id dtype="string" in_var="" out_var="">{replenish_order_id}</replenish_order_id>
</row>
</main>
</action>
<action name="execmacro">
<attribute bo_name="main" macro_name="CreateIMOPR" />
<attribute dtype="string" in_var="" value="N" />
</action>
</state>
</session>
</root>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.