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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Change Field Value with Default Value

(0) ShareShare
ReportReport
Posted on by 30

Hey! I am new to AX 2012 and I have to do a task. I have to change some field with the value set as default. I have two fields. The MarketingCategory ( the value I need to change/update) and the DefaultValue (Yes/No base Enum). 
I have to change the values from the lines and I don t know how to do it. Can you help me with the class code? I need this so I can create a batch job after that. Thank you!

The values That I have to change are the MarketingCategory, MarketingCategoryClass. I need to do this by code, for all lines from the Released Products.

2022_2D00_04_2D00_01-19_5F00_58_5F00_27_2D00_feaa.ft.ro_5F00_10000-_2D00_-Remote-Desktop-Connection.png

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Hogan,

    The fields you mentioned are part of a customization. We don't know in what table they are added and we can't guess the actual technical field names.

    If you need a job to update all records, you can use the update_recordset command. This will be performance wise the best solution as it will be only one call to the SQL server. 

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans