Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Change Field Value with Default Value

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
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans