Hi Help
Can you use an updateable BAQ via REST. We have added a UBAQ to add a order and order line and it works via the screen, now we need to access this via REST passing the order / partnum etc parameters.
Is this possible?
Thanks
Steve
Hi Help
Can you use an updateable BAQ via REST. We have added a UBAQ to add a order and order line and it works via the screen, now we need to access this via REST passing the order / partnum etc parameters.
Is this possible?
Thanks
Steve
Yea just go to the swagger help screen for that BAQ and youâll see what the requirements are
One benefit as it stands right now is that @SKB843 already has the UBAQ working and it would be easier to run it as is rather than build a function.
@SKB843 I would try creating a function as @Mark_Wonsil is suggesting- just to get the hang of it and add another tool to your toolbox. I think you could even build a function to run your updatable BAQ if you really wanted to.
Not much other than he already has a query done.
Also ubaq are very point and click out of the box functions can require some TLC if you arenât familiar with them
Ah, gotcha. Yeah, if youâre upgrading then that makes sense. But for a greenfield solution, maybe a function gives you more options for the future.
Hi Everyone,
Thanks for your help.
I got it working using the Patch method in the UBAQ using âSwaggerâ included in the REST API with Epicor . To load the the order and the line required two UBAQâs. One for the header creation and one for the line. The Rest response for the header included the SO# number and this is then used in the UBAQ to add the lines. You need the SO# to add line as this is the KEY in the Header and Detail tables.
The header creation was achieved with a very small amount of fields as below, and can be even fewer than this.
{
âOrderHed_Companyâ: my company
âOrderHed_CustNumâ: 0,
âOrderHed_FOBâ: FREI",
âOrderHed_NeedByDateâ: â2021-12-13â,
âOrderHed_OrderDateâ: â2021-12-13â,
âOrderHed_OrderNumâ: 0,
"OrderHed_OTSName â: TEST,â
âOrderHed_PONumâ: âWOOâ,
âOrderHed_RequestDateâ: â2021-12-13â,
âOrderHed_ShipViaCodeâ: âFIS1â,
âOrderHed_UseOTSâ: true
}
Thanks again
Steve
Totally agree!
Nice Steve!