Post of codeunit 90

marcuscmarcusc Member Posts: 17
Hi,
We're expending the purchase order to web portal. We're trying to use the standard codeunit 90, but unable to find any function to trigger the post. How to we allow to post? Do we need to customize the codeunit? Please advise.
Thanks

Best Answer

Answers

  • lubostlubost Member Posts: 611
    1. Standard Post function in codeunit 90 is Run trigger.
    2. You have to send a record of table 38 into this function.
    3. Better way is to expose simple page based on table 38 and with simple function to call codeunit 90 with actual record.
  • RockWithNAVRockWithNAV Member Posts: 1,139
    You cant use Codeunit 90 as a web-service because it has Record variables as parameters.
  • marcuscmarcusc Member Posts: 17
    Do we need to customize CU90? Understand we cannot direct call the CU90, but how if we passing the parameters to purchase order ? If can, what action need to perform? Thanks
  • lubostlubost Member Posts: 611
    3. Better way is to expose simple page based on table 38 and with simple function to call codeunit 90 with actual record.
  • marcuscmarcusc Member Posts: 17
    edited 2017-06-13
    Thanks @lubost . We doing this way, but there is no function to call. Do we need set properties function to not local under C/AL Global?
Sign In or Register to comment.