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)

Vendor Names

(0) ShareShare
ReportReport
Posted on by

We need to change all vendor names and vendor search names to use capital letters only. I hope that there is a way to do it through the database in bulk or somehow programmatically  instead of doing it one by one through the application. I have this query:

select v.ACCOUNTNUM
, d.NAME --Vendor Name
, d.NAMEALIAS --Search name
, v.VENDGROUP
, v.DATAAREAID --Company
from [dbo].[DIRPARTYTABLE] d with (nolock)
inner join dbo.VENDTABLE v with (nolock) on d.recID = v.Party

which gives me all vendor names and search names but i wonder if there are other tables besides [DIRPARTYTABLE] that should be updated with the new values.

Thank you,

nothereyet

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You can update data in AX in bulk by writing an X++ job, or using the Data Import Export Framework.

    Here is my article which explains why you should not touch data in SQL Server directly:

    [View:https://www.daxrunbase.com/2017/06/13/update-ax-database-tables-from-sql/:320:50]

    Also you should be more specific on what exactly would you like to update, since DirPartyTable is the global address book entry for parties, which is shared data for vendors, customers, etc.

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    It's recommended performing the update through the application instead through SQL(as pointed by Vilmos).

    DirOrganizationName is the other table which holds the Name and gets updated if we change the name for a vendor. (Refer code: \Data Dictionary\Tables\DirPartyTable\Methods\updateOrganizationName)

    Thanks,

    Chaitanya Golla

  • Community Member Profile Picture
    on at

    I was trying to avoid record by record updates and do it in record set operation. If I use X++ code, is it going to scroll through all vendors and do change the names one by one or there is a way to avoid it?

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    AX supports set-based operations:

    [View:https://msdn.microsoft.com/EN-US/library/aa673589.aspx:750:50]

    Please forget touching AX database via SQL.

  • Community Member Profile Picture
    on at

    Thank you everyone for replying to my question. It was very useful to me.

    However, it looks like my task has shifted from updating vendors' names to all uppercase letters to updating vendors' names based on the supplied CSV file. If you could suggest a good article to read about this method, I would truly appreciate it.

    Thank you in advance,

    Nothereyet

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Either you could make use of DIXF or x++ code to update vendor names from excel.

    Refer following links:

    Through DIXF:
    (Using Excel to Import Customers and Vendors in Dynamics AX 2012)
    community.dynamics.com/.../using-excel-to-import-customers-and-vendors-in-dynamics-ax-2012

    Through X++:
    (Vendor Import ( Insert/Update ) from Excel using X++)
    axlogics.blogspot.com/.../vendor-import-insertupdate-using-x.html

    Hope this information helps you.

    Thanks,
    Chaitanya Golla

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans