Archive
Posts Tagged ‘Metadata Filter’
Dynamics Portals – Entity List Filters
Dynamics Portals Entity List is a easy and seamless way to port Dynamics 365 CE entity views to Dynamics Portals.
As an example, if I port ‘Active Contacts’ and ‘Inactive Contacts’ views to Portals, Portal User would start see all the Contacts based on his Web Roles.
Now lets implement a filter condition, to show only those Contacts where the logged in ‘Portal User’ (i.e., Contact) Company belongs to.
With out Filter Condition:
- I logged in to Portal as ‘Rajeev Pentyala’ whose Company is ‘Northwind Traders’ and having ‘Adminstrator’ Web Role.
- I can see all the Contacts irrespective of ‘Company’
With Filter Condition:
- With Filter Condition in place, I will see only those Contacts from my Company ‘Northwind Traders’
- To configure ‘Filter Condition’
- Open ‘Entity List’ form
- Under ‘Filter Conditions’ section, select ‘Account Attribute’ as ‘Company Name(parentcustomerid)’
- Open ‘Entity List’ form
Metadata Filter:
- What if we have to provide option to the ‘Portal User’ to filter the records based on field values?
- In below screen, Portal User has an option to filter records based on 2 Company Names (i.e., Northwind Traders, Adventure Works)
- This behavior can be achieved using ‘Metadata Filter’ option.
- In this article, I am going with ‘FetchXML Filter’ option, to provide filter options based on ‘Company Names’.
- Open ‘Advanced Find’ and prepare the filter.
- Download Fetchxml and copy only the <filter> tag
- Note: Add ‘adx:uiname’ property in <filter> tag to customize the filter label in Portal.
- Paste it in ‘FetchXML’ field and Save
- Notes:
- You can define more than one ‘Metadata Filters’.
- Refer articleย for detailed usage of Filters.
๐
Categories: CRM, Dynamics Portals
Tags: Dynamics Portal, Entitylist, filter, Metadata Filter
Stats
- 1,050,187 hits
Translate
Top Posts
- Associate/Disassociate plugin messages in CRM
- Working with Azure Active Directory (AAD) Groups in Dynamics Customer Engagement
- [Step by Step] Postman tool to test Dynamics 365 online Web API
- Data Tables - Error - Non table node initialization
- Useful JScript syntax's โ ADX/Dynamics 365 Portals
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Dynamics 365 - Microsoft Forms Pro Survey Solution
- [Step by Step] Restore a Database from Azure Blob to Azure SQL Server
- Sandbox vs Production Instances โ Dynamics 365
- C# - SQL - Bulk Insert records from Data Table and CSV