web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Auto populate Buyer Group from Purchase Requisition to Purchase Order during Batch PO Creation

(0) ShareShare
ReportReport
Posted on by 58

Requirement:
Auto populate Buyer Group from Purchase Requisition to Purchase Order during automatic PO creation through batch job in D365FO.

Scenario:

  • BuyerGroup field added in PurchTable.

  • Purchase Requisition goes through RFQ process.

  • RFQ is accepted/rejected.

  • After requisition approval, batch job creates Purchase Order automatically.

  • Requirement is to transfer BuyerGroup value from Purchase Requisition to PurchTable during PO creation.

Analysis:
Batch class PurchReqPurchaseOrderGenerationBatch only creates release strategy batch tasks and does not directly insert PurchTable records.

The actual PurchTable preparation happens in class:
PurchAutoCreate_PurchReq

Standard method identified:

public void createPurchTable()
{
    purchTable.setPriceDiscChangePolicy(PriceDiscSystemSource::PurchaseReq);
    purchTable.initInvoiceAccount();
    this.copyPurchReqDeliveryDateToPurchTable();

    purchTable.calculateRequestedShipAndReceiptDate(
        dateNull(),
        purchTable.DeliveryDate,
        SchedDirection::Backward);

    purchTable.SkipShipReceiptDateCalculation = true;

    super();
}

Question:
What is the best practice to populate custom BuyerGroup field into PurchTable during automatic PR to PO creation?

  • Should the value be assigned before super()?

  • Or should CoC extension update PurchTable after creation?

  • Has anyone implemented similar customization in PR → RFQ → PO auto generation flow?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 103

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 76 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 59 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans