I am trying to add an action to Purchase Orders to allow our accountant to quickly access the Apply Vendor Entries page.
By default, we access this page by navigating from the Purchase Order to the related Vendor > Vendor Statistics > Balance > Apply Entries, where we are presented the below view.
This works fine, but is very clunky to navigate too. I'm attempting to add the following action:
actions { addlast(processing) { action(ApplyVendorEntries) { Caption = 'Apply Entries'; ApplicationArea = All; Image = Receipt; RunObject = page "Apply Vendor Entries"; RunPageLink = "Vendor No." = field("Pay-to Vendor No."), Open = const(true); } } }
This loads the correct page, and seems to be filtered correctly, however as you can see from the below the header information is missing.
Once rendered, I am unable to leave the page and receive the error The Vendor Ledger Entry does not exist. Identification fields and values: Entry No.='0'
Can anyone offer insight into why this is happening? Is there a better way to open the Apply Vendor Entries page from the Purchase Order record? Or is there additional information I need to pass to RunObject() to ensure the header is populated?
Thanks!