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

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

(1) ShareShare
ReportReport
Posted on by 17

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:

  1. 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?

  2. 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.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    307,097 Super User 2026 Season 2 on at
    Hi Zaid,
     
    This is not possible. The application and development environment are separated. You can't change AOT objects anymore like it was possible in AX 2012 and before.

    The property is managed in Visual Studio. You can only set a value for your tables. Standard Microsoft models are locked and this property is not open for accepting another value using a table extension.
  • Martin Dráb Profile Picture
    240,742 Most Valuable Professional on at
    I replied to an identical question four days ago. It was created by another user, but both the title and the content are the same. Here is a link: How to change table property automatically by creating batch job or by using X++ in D365FO..

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans