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 AX (Archived)

Update price unit in manage cost (Released Product)

(0) ShareShare
ReportReport
Posted on by

hi,

i need to update the price unit for all the items to zero and i need a help to run a query to update for all items because it will be difficult to update the price one by one.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    sorry not the unit price what i need to update the price to be zero

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi!

    You should update Amount field in PriceDiscTable and PriceDiscAdmTrans tables.

    After update call the PriceDisc::flushPriceDiscCache() method.

    You should run update data in every entity.

  • Community Member Profile Picture
    on at

    as far i know the table name is InventTableModule , ModuleType : inventory and Price, so i need to run and query to update all prices to zero

  • Community Member Profile Picture
    on at

    but how can i run one job to update the price for all items to zero?

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    My suggestion was for price agreements, sorry.

    If you want update Price field in InventTableModule table for all items, try this:

    static void Job174(Args _args)
    {
        InventTableModule inventTableModule;
        
        ttsBegin;
        
        update_recordSet inventTableModule
            setting Price = 0
            where inventTableModule.ModuleType == ModuleInventPurchSales::Sales;
        
        ttsCommit;
        
        info("done");
    }


  • Community Member Profile Picture
    on at

    thanks a your quick update but if I need to update the inventory only it should be ModuleInventPurchSales::Inventory; ?

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Yes.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans