Hide Headers, Commandbar, Tabs in D365 Forms

Image
There are options available to hide Command Bar, Header part and Tabs.  Below is the screenshot which highlights these areas for your understandings. let formContext = Xrm.Page ; or let formContext = executionContext.getFormContext(); // Hide Header part formContext.ui.headerSection.setBodyVisible(false);   //Hide Command bar formContext.ui.headerSection.setCommandBarVisible(false);   // Hide Tabs formContext.ui.headerSection.setTabNavigatorVisible(false); After all are hidden,

Run Power automate under modifying user context

In Power automate, we can run the flow under the below mentioned user's context.

1. Modifying user

2. Flow owner

3. Record owner

We had a requirement to run the flow under Modifying user. So, in the trigger we set 'Run as' Modifying user.






But still we noticed it was running under the service account which we had selected in the update action and modified by of the record was always Service account.











Finally, we found out that though we had selected Run as 'Modifying user' in the trigger, in every Dataverse action, we need to select 'use invoker's connection' as shown below to call CRM in the context of the modifying user.


Comments

Popular posts from this blog

Convert datetime to user local in D365 Plugins

Using Resx file in D365 Plugins/Workflows