Quick create forms can be a little tricky in Model-Driven Apps. Sometimes you want the user to be able to create records using the quick create, from a subgrid on a related form but you don’t want them using the global quick create + button as no lookups will be auto-populated which can lead to javascript logic failing or unassociated records.
Read More
Highlight/Visualize Form BPF Required Fields -JS
This was a nifty function I used to highlight required fields for the current BPF stage as a business recommended so the user did not need to expand the BPF but instead the fields would be highlighted with the blue asterisks
HighlightStageRequiredFields = function (executionContext) {
var formContext = executionContext.getFormContext();
var activeStage = formContext.data.process.getActiveStage();
var steps = activeStage.getSteps();
steps.forEach(function (step) {
var attribute = formContext.getAttribute(step.getAttribute());
if (step.isRequired() && (attribute.getValue() === null || attribute.getValue() === false) ) {
if (attribute.getRequiredLevel() !== "required") {
attribute.setRequiredLevel("recommended");
}
}
});
};
Register this on load and on process change to highlight the fields as the BPF moves stages. Pair this with a field or custom PCF control to move stages and you never have to expand the BPF.
Watch out for the ands when copying in line 7.

Read-Only: You don`t have permission to edit
If you ever get this error whilst opening a record in UCI. All you need to do is make sure the entity is enabled for mobile and is not read-only.
Read-Only: You don`t have permission to edit {entity}


Registering Form Event Handlers In JavaScript
Something I have started looking at recently is registering form event handlers within the code. I personally think it allows anyone to review the form to quickly seeing all event handlers in one place without having to flick through both the form and the JavaScript file. This is done using
Read More
Dynamics V9 – Filter Customer Lookup – Accounts Only
JavaScript function for filtering customer lookups. For example in situations where cases are only created for accounts only. This also prevents contact records from appearing when the user searches in the lookup.
Read More
PowerApps CDS Uploading and Viewing Images
Code Function snippets used
Concatenate("data:" ,ThisItem.mimetype,";base64, ",ThisItem.documentbody)
"<div> <img src=’data:image/png;base64, {b64 here}}’ /> <h1>John Doe</h1> <p class=’title’>CEO & Founder, Example</p>
</div>"
"<div> <img src=’data:image/png;base64, "& vFirstImage.Document &"’ /> <h1>" & Text( Concatenate(gRegs.Selected.Firstname," ",gRegs.Selected.Lastname) &"</h1> <p class=’title’>"& Concatenate("Job ",gRegs.Selected.Jobtitle)& "</p>
</div>"
Starling – Flow – CosmosDB -Power BI
Azure Cosmos DB Learning / challenge to automate the process keeping an eye on your spreading, without manually inputing each of your transactions into a spreadshet (Thanks for the idea Simon!). Although this is like cracking a nut with a sledge hammer, Cosmos DB is pretty awesome!
Bank trasactions to Flow Webhook -> To Azure Cosmos DB -> Power BI




PowerApps – Flow Registering Error
I received the below error whiles trying to add a flow returning a collection to a PowerApp. Barely any info from the error but inspecting the call in the browser console added a slightly more helpful message.
Read More
Analyze Image – Cognitive Services PowerApp
Simple BYOUI app showing the Analyze Image Api in Cognitive Services.
You’ll need a onedrive for business connector and a Computer Vision Api Connection . The below key should be working for a while, for testing purposes
Api Key : 9dfe8bb2bae542fab110ecef89d40a77
Url : “https://southeastasia.api.cognitive.microsoft.com/”
Available to download on the Power Apps Bank https://dynamics365society.uk/powerappsbanklist/analyze-image-cognitive-services/

Receiving SMS in Dynamics using Twilio Part 2
Following on from part 1-receiving sms in dynamics using twilio. You have created a flow webhook which receives sms messages sent to your Twilio number and creates an activity in Dynamics.
This guide will focus on finding a match between the incoming mobile phone number with a contacts in Dynamics, and then associate the activity with the contact record.
Read More