Announcements
No record found.
Hi,
We have created two Model-driven apps and one for a salesperson and the other for a service person. In the app, we have added specific views so that each app has access to proper views. It's working correctly from CRM. We have also developed one HTML application in which we read the view list. But in our HTML its shows all the views so that when salesperson opens the HTML then they see all views but it should only show those that are available in their model-driven app. Is there any API or script using which we can read system views from CRM that are defined in the model-driven app.
Thanks!
You can use appmodules => appmodulecomponents to find the views of your application.
With WebAPI :
1. Find appmoduleidunique: appmodules?$select=appmoduleidunique&$filter=uniquename eq 'AppName'
2. Find system views: appmodulecomponents?$filter=componenttype eq 26 and _appmoduleidunique_value eq 'appmoduleidunique'
System view = 26
Hi Xavier,
Thanks for your reply. We have checked the above Web API queries but they did not work. When we got the “appmoduleidunique” from “appmodules” and then pass in _appmoduleidunique_value field in appmodulecomponents but it did not return anything.
For troubleshooting when we fetch all appmodules and then all appmodulecomponents and when we tried to find _appmoduleidunique_value from “appmodulecomponents” in “appmodules” then it did not find it.
We wanted to confirm from where we get the value for _appmoduleidunique_value.
You can use the WebAPI function: /api/data/v9.2/RetrieveAppComponents(AppModuleId=<AppModuleId>)
This function use the appmoduleid instead of appmoduleuniqueid
If the app includes all views, the result will not contain componenttype = 26
Thanks for your reply. It is really helpful.
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!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 180 Super User 2026 Season 1
11manish 123
CU11031447-0 100