Skip to main content

Posts

Showing posts with the label Unified Interface

Async Plugins vs. Power Automate Flows

How to quickly update an attibute from a browser bookmark

 As a developer or tester sometimes its really nice to have a direct way to update an attribute on the current record. To accomplish that you can simply bookmark a new page in e.g. Chrome and add this little piece of JavaScript into the URL field: javascript:(function(){const curId=Xrm.Page.data.entity.getId();const entName=Xrm.Page.data.entity.getEntityName();const fldName = window.prompt("Please enter the attribute name");const fldValue = window.prompt("Please enter the attribute value");const jsdata={};jsdata[fldName]=fldValue;Xrm.WebApi.updateRecord(entName, curId.replace(/[{}]/g, ''), jsdata).then(function success(result) {window.alert('${entName} was successfully updated');},function (error){window.alert(error.message);});})() An alert box will ask you for the internal attribute name and a second for the value. This might not be the best way to do it but it will give you a clue on how to change it for your own needs. (This script will only work...

Cannot find the administrative settings with Unified Interface apps in my Dynamics 365 trial

When go to https://trials.dynamics.com and create a new trial environment the first step I always do is to go to the Settings => Security => User to promote my user as admin. With the new unified interface you might find out quickly that this approach will not help you in the classic way where you tried to open the Dynamics 365 – custom - App in order to navigate to the Security settings. If you try to do so, you will always end up on the default or Sales app. Checking out the personal settings you will find a new option "Advanced Settings" which will navigate you to the classic Settings page: VoilĂ , now we got the Settings page back: Now you can select your user and promote him to admin: