Tag Archives: Dynamics

Entities are Tables now, so what?

You have probably heard that Entities are Tables now? If not, have a look here: https://docs.microsoft.com/en-ca/powerapps/maker/common-data-service/data-platform-intro#terminology-updates Well, am I thrilled about it? Am I concerned about it? Quite frankly, we should all get used, by now, to all those changes in the product names and/or in the terminology around Microsoft products. Sometimes, those changes are… Read More »

Retrieving environment variable value in Javascript

The script below might help if you wanted to read CDS environment variable value in your javascript web resource. top.environmentVariables = []; function getEnvironmentVariableInternal(varName){ “use strict”; top.environmentVariables[varName] = null; Xrm.WebApi.retrieveMultipleRecords(“environmentvariabledefinition”, `?$top=1&fetchXml=<fetch version=’1.0′ output-format=’xml-platform’ mapping=’logical’ distinct=’true’> <entity name=’environmentvariabledefinition’> <attribute name=’defaultvalue’ /> <filter type=’and’> <condition attribute=’schemaname’ operator=’eq’ value=’` + varName + `’ /> </filter> <link-entity name=’environmentvariablevalue’ from=’environmentvariabledefinitionid’… Read More »

When would onSave form event occur in model-driven apps?

We can use three different functions to save a form: formContext.data.entity.save formContext.data.save formContext.data.refresh(true…)   Off the top of your head, do you know which one will result in the “onSave” form event and when? Those details might not be quite obvious when looking at the documentation for each of the functions separately, but there is… Read More »

We can now do column comparison with Fetch/Web API!

Wow, we’ve been asking about it for a (long) while: https://powerapps.microsoft.com/en-us/blog/announcing-column-comparison-through-fetchxml-sdk-and-odata/ Do you want to do column comparison with Fetch? You can do it now – it’s only supported for a few conditions so far: Equal NotEqual GreaterThan GreaterEqual LessThan LessEqual   And it’s not, yet, supported in the UI query building tools (Advanced Find).… Read More »

PowerAutomate Flow does not require change tracking to be enabled for a CDS entity

There was a quick discussion on linkedin yesterday where the post by Jerry Weinstock stating that change tracking must be enabled for the Flows to work was mentioned: https://www.crminnovation.com/blog/microsoft-flow-crm-change-tracking-option/ Given that I did not do anything with the Flows 3-4 years ago, and I never had to worry about change tracking recently, I was a… Read More »