Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

How to change table property automatically by creating batch job or by using X++ in D365FO.

Posted on by 15
Hi Friends,

Please tell me

How can I automate the process of changing a table property (e.g., 'Allow Retention') to 'No' or 'Yes' in Dynamics 365 Finance and Operations using X++ or by creating a batch job?

I'm working with D365 FO and need to update the 'Allow Retention property to 'No' or 'Yes' of a specific table or tables at once automatically. The goal is to toggle this property between 'No' and 'Yes' based on certain conditions.

Could you provide guidance on:

Creating a batch job that automates this property change. What classes and methods should I use, and how should I structure the job to ensure it runs periodically or based on a trigger?

Using X++ to programmatically modify the table property. What code would be necessary to locate the table, update the property, and save the change?

I'd appreciate recommendations.

Thanks.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans