Create Purchase Orders - Confirm - Product receipt - Post using X++ in Dynamics 365 Finance & OperationsThe script will work for Dynamics 365 Finance & Operations version