Hi,
I am using power automate to create item journal lines from other data source, I can to create an API and use it in the flow to create the lines in the journal, and it works:
the next step is to post the line in the item ledger entries, is known for me that I need to use a codeunit and deploy as web service for this (documentation HERE).
But I'm not get very well the steps to create the codeunit, I don't know how to start, maybe someone have a usefull example or a better documentation?
Any help is appreciated, I've been stuck with this for several days.