Announcements
I am trying to invoke a "default" action via the Sales Order. I am trying to create a warehouse shipment from the Sales order. The action I am trying to invoke is <Action149> Id#149.
This is the URL I am trying to post:
{{ base_url }}/nav_SalesOrders('S001293'/149
Does the syntax look correct?
*This post is locked for comments
I would create a new function in a codeunit and then expose the codeunit as a web service. Once the codeunit is exposed as a web service you can call the functions with a POST.
Link: http://www.tharangac.com/2019/02/call-business-central-function-through.html
Yes going with the Codeunit and then calling that code part will be a better Idea instead applying your Brain on this!!
Yes, it is possible . you need to create the function to create the warehouse shipment inside the page . please ensure there is no client call back (MESSAGE,ERROR prompt) and set the function properties as below :
Property Value
Local No
FunctionVisibility External
ServiceEnabled Yes
Thanks for this information. After my sales order posts, I am trying to call on the specific <action149> which "creates a warehouse shipment" from the Sales order that was just created. Can this be accomplished via a POST command?
In NAV 2018 , you can use Boundaction, refer on below :
Syntax should be like :
http://<Server>:<WebServicePort>/ODataV4/Company('CRONUS%20International%20Ltd.')/SalesOrders(<Document Type>,<No.>)/NAV.Post
for Post function inside the Sales order page , please ensure the property as below :
Property | Value |
---|---|
Local | No |
FunctionVisibility | External |
ServiceEnabled |
Yes |
I think you should create separate code unit and add method on this and make this method Global. And add this method to web service And call this method via Web service
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156