Tag Archives: PowerApps

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 »

Can’t see “Edit Filters” button in the classic solution designer for a view? Here is one reason why

There is, really, not a lot to write about it. The screenshot below says it all: There is one link missing on the right side, which is “Edit Filter Criteria”. It does show up for some other views, though: But, from what I could see, it disappears once the view(or, possibly, the filters) has been… Read More »

Reporting and document generation in Power Platform

For some reason, the part of Power Platform that used to be Dynamics CRM (and was, then, transformed into what’s called “first party” applications) has always been limited in its reporting and document generation capabilities. It’s still the case, it seems, and it’s a strange situation for an enterprise-grade platform. After all, what’s the point… Read More »

Add intelligent File Download button to your model-driven (or canvas) apps

How do we add file download button to the model-driven apps? To start with, why would we even want to do it? There can be some interesting scenarios there, one being to allow your users to download PowerAutomate-generated word templates (see my previous post). That, of course, requires some custom development, since you may want… Read More »

Using flow-generated word documents in model-driven apps

Document Templates have been available in model-driven apps for a while now – they are integrated with the model-driven apps, and it’s easy for the users to access them. They do have limitations, though. We cannot filter those documents, we can only use 1 level of relationships, on each relationship we can only load 100… 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 »

Using application monitor to troubleshoot Model-Driven apps

You may have heard that we can now use Monitor with model-driven applications. It can provide some very useful context about the client-side behavior of your apps, but there is one option which may be particularly useful when troubleshooting end-user issues. It seems this process is supposed to be done through the “Invite” button below:… Read More »