I’m looking to automate the creation of an AP Invoice as soon as a GRN (Goods Receipt Note) is completed. It would be great if anyone could guide me with the code required to call a service in BPM or suggest any alternative approach to achieve this functionality.
There can be a lot of complexity to this, but the best way to figure out what your code would need to do is to trace the REST / method calls that the system makes when you book the AP Invoice manually and recreate them in a function that your BPM calls.
I wonder what kind of business requirement is this, AP Invoice is supplier prejudice and it should be provided by them with Invoice number. At the time of GRN you should create the liabilities for BS.