Announcements
No record found.
I want to update the vendor id across all the legal entities according to the custom number sequence defined. Can any one please share how one can fetch the number sequence of vendor ID via code?
Hi Harshal, Please check below article. There is a method numRefVendAccount in VendParameters table.
community.dynamics.com/.../how-to-find-next-value-from-sequence-number-when-sequence-number-reference-not-in-parameter-table
sequence = NumberSeq::newGetNum( NumberSeqReference::findReference(extendedTypeNum(VendAccount))); info(sequence.num());
Hi Mohit,
I have used the following code to generate the number sequence, but its returning blank. Any suggestions?
Please check if number sequence for vendor account is setup in Account payable parameters.
Check the number sequence is setup properly, please try this code and debug where its failing. Also, please check if number sequence is working correctly when vendor is created manually from All vendors form.
_sequence = NumberSeq::newGetNum( VendParameters::numRefVendAccount());
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 510 Super User 2026 Season 1
Giorgio Bonacorsi 399
Adis 251 Super User 2026 Season 1