We need to use the Business Event "VendorPaymentPostedBusinessEvent" as a Power Automate trigger. So everytime a Vendor payment journal is posted the Power Automate should be triggered with the following (sample) output:
{
"BusinessEventId": "",
"BusinessEventLegalEntity": "",
"CashDiscount": 0.0,
"ContextRecordSubject": "",
"ControlNumber": 0,
"CurrencyCode": "",
"EventId": "",
"EventTime": "/Date(-2208988800000)/",
"EventTimeIso8601": "1900-01-01T00:00:00Z",
"InitiatingUserAADObjectId": "{00000000-0000-0000-0000-000000000000}",
"LegalEntity": "",
"MajorVersion": 0,
"MinorVersion": 0,
"ParentContextRecordSubjects": null,
"PaymentAccount": "",
"PaymentAmount": 0.0,
"PaymentDate": "/Date(-2208988800000)/",
"PaymentId": "",
"PaymentMethod": "",
"PaymentReference": ""
}
It would be great if this output could be extended by the JournalBatchNumber of the posted journal.