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

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    293,001 Super User 2025 Season 1 on at
    RE: Change Field Value with Default Value

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,001 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans