Recently, we came across a new method in PCF – retrieveRecordCommand. This method will help us to retrieve the related commands for specific record(s). It also gives the flexibility to retrieve only specific commands that the user wants to see.
So, let’s see a scenario in which this method would come handy. Let’s say we want to show a PCF Dataset Component in a sub grid without the OOB Command Bar, which is very much possible. But what if we also want to execute some of the OOB commands in some events. This is where the retrieveRecordCommand method would save the day.
Using this method, you can retrieve the commands and once you have access to those commands, you can even trigger them by using the execute method.
Given below are the few parameters for the retrieveRecordCommand method.
Now let’s see how we can accomplish the above scenario.
We have a sub grid of Contacts on Account, where we have configured our Detail List Fluent UI component. Above the…
More About This Author
Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.
Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.
- Dyn365CE2022.08.18Usability enhancements to grids in Model-Driven Apps
- Dyn365CE2022.08.16Modify and delete multi-table lookups within Dynamics 365 CRM
- Dyn365CE2022.08.12Performance Insights (Preview) in Model-Driven Apps
- Dyn365CE2022.08.10Multi-Select Option field in Dynamics 365 V9.2 using Power Automate