Announcements
No record found.
Hello,
Is there a way to get MainAccountId and posting profile from vendTable?
*This post is locked for comments
Hello Alex,
The vendors are typically linked to vendor groups which are referred to in the vendor posting profiles in order to determine the summary payables main accounts.
Please note that also a vendor specific relationship between a vendor account and a main account or - alternatively - a generic relationship for all vendors to a main account can be setup in the vendor posting profile.
So, probably have a look at the AP posting profiles to identify this link.
Hope this helps,
Ludwig
Thank you for the reply,
I try this but code but i can't get mainaccount
PostingProfile = VendLedgerAccounts::find(VendParameters::find().PostingProfile,
TableGroupAll::GroupId,
custVendTable.GroupId).PostingProfile;
mAccountId = VendLedgerAccounts::find(VendParameters::find().PostingProfile,
custVendTable.GroupId).PurchasingOffsetLedgerDimension;
MainAcc = MainAccount::find(DimensionStorage::getLedgerDefaultAccountFromLedgerDim(mAccountId)).MainAccountId;
Hi Alex,
Try this:
mAccountId = VendLedgerAccounts::find(VendParameters::find().PostingProfile, TableGroupAll::GroupId, custVendTable.GroupId).PurchasingOffsetLedgerDimension; MainAcc = DimensionAttributeValueCombination::getMainAccountFromLedgerDimension(mAccountId);
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.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader