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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

purchFormLetter.update second parameter value for Purchase Order confirmation?

(0) ShareShare
ReportReport
Posted on by

Hi All,

May I know where can I get / generate value for num while calling purchFormLetter.update(purchTable, num) for purchase order confirmation? And where the num parameter save to?

Below is my code:

static void Job1(Args _args)
{
    PurchFormLetter purchFormLetter;
    PurchTable  purchTable;
    ;

    purchTable = PurchTable::find("000080");

    purchFormLetter = purchFormLetter::construct(DocumentStatus::PurchaseOrder);
    purchFormLetter.update(purchTable, num, today());
}

Thank you.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    The num represent an external document number. You may pass anyvalue there. But that must be string

  • Community Member Profile Picture
    on at

    Any idea this value will be store to which table and column?

  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    • Yes, initially the value is saved in SumNum (field of PurchParmTable)

    • The purpose of this field is probably to have PO lines from multiple POs combined into a SINGLE vendor invoice.

    • You will not find any meaningful role of this field at time of PO confirmation.

    • But if you will go to PurchInvoiceJournalCreate (class) you will find there the salesSumNum (field) inside the check (method) of PurchInvoiceJournalCreate (class)

    • You change setting for Summary updates from Accounts payable>>Setup>> Summary Update Parameters.

       

      Using this information you may debug the classes and tables to come around your need or you may specify what you are actually looking for

       

  • Community Member Profile Picture
    on at

    Hi Sohaib,

    I don't have any specify to look for, just want to put correct value.

    Thank you. :)

  • Raman Profile Picture
    175 on at

    You helped me today. Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans