Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I use formContext.getControl(fieldName).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault) to add custom view, but it's being added to list every page refresh or save. So I need to restrict adding if there already was one. I can come up with some boolean, but is there any way to get list of lookup field views or remove some of it?
formContext.getControl(fieldName).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault)
You need to make an Retrieve Call using ODATA to get the list items, as per my knowledge there is no other way. Lets wait for other comments too.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : www.youtube.com/.../UCnGNN3hdlKBOr6PXotskNLA
Blog : microsoftcrmtechie.blogspot.com
Ram Prakash But there is no needed views. When I try to get savedqueries, I get only those that I can see in Customization settings section, and there are no views added from script. How can I get them?
Business Applications communities