I am experimenting with using Power Automate to create Purchase Orders in D365 FO. I have been successful in getting it to create a Purchase Order Header record and then create Purchase Order Line records within the created PO by using the Create a record option on the PurchaseOrderHeadersV2 & PurchaseOrderLinesV2 entities. As part of both of these, I am designating a Purchase Agreement & Purchase Agreement line to link to. When the purchase order is generated, the Purchase Order Line does show it is attached to the correct PA & line. The problem is that when I navigate to that Purchase Agreement, it does not show any linkage to this new PO, and the quantity is not changed.
So, it is creating the data correctly in the PO to appear to be linked to the PA, but that actual link does not seem to be occurring between the PO that Power Automate is creating, and the existing Purchase Agreement in the system. I am not sure if I am approaching this incorrectly/ missing a step, or if what I am doing is not possible through Power Automate.
Does anyone have experience with this, or can provide some guidance on what I am trying to accomplish?