Announcements
No record found.
Hi Expert
Is it possible to create a security role or security policy or query throw code, not from AOT?
Thanks
Hi,
What is your business requirement?
Why you want to create AOT objects by code? Is there any specific reasons for that.
Thanks,
Girish S.
Hi Source258147,
It is possible to configure security objects, like privileges, duties and security roles in the application. These are maintained and visible on runtime only. If you want to do it via coding yourself, you can review how Microsoft has done this themselves on the security configuration form and using the data entities. There is no option today to configure security policies.
Thanks andre for your replay
but the security configuration form create role,duty etc..
but not create quary , security role
i want to create a form from this form i generate a XDS and as you know XDS need role, quary, security role, security policy etc
from where should i start.
Hi Soure258147,
As mentioned above, XDS can't be configured. This would require a customization via the AOT in Visual Studio.
Thanks Grish for your replay
there is no business requirement i need to know how to create object like this throw code not from AOT
i can do this customization throw VS but i dont need this
another question how this tool build
https://github.com/TrudAX
in this tool they can create a class throw code may be if they can create a class can create another object like query
To my knowledge, the TRUDUtilsD365 extensions it is generating source code which needs to be built in Visual Studio. I haven't used it myself.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 663
André Arnaud de Cal... 439 Super User 2026 Season 1
Syed Haris Shah 337 Super User 2026 Season 1