MDA: How to disable/set view selector for Lookup in BPF

As you know already, in one Table (Entity), we can create lots of Views. And by default, when we add that table in the form (as Lookup control), the User can see all the views and change it. That is why common in the business requirement to set the control to only use certain views … Continue reading MDA: How to disable/set view selector for Lookup in BPF

Advertisement

Model-Driven-Apps: Add on post-save event

What is the best way to add a post-save event that will always be called either success/failure? From the documentation, I see we actually can use addOnPostSave but when I try it, it didn't work as expected (later we will go through this scenario). So, as an alternative for now we can make use of … Continue reading Model-Driven-Apps: Add on post-save event

Dataverse: Comparing Create vs ExecuteMultipleRequest vs Azure Service Bus – ServiceBusTrigger

Today we will learn how to write code for bulk create records (e.g for custom data migrating purposes). I will give two methods (plus with different settings to see if they have positive differences) and compare the time to see the best results. Without further a do, let's go! For the code itself, this is … Continue reading Dataverse: Comparing Create vs ExecuteMultipleRequest vs Azure Service Bus – ServiceBusTrigger

Dataverse: Export Import Solution from your command prompt using PowerApps CLI

Powerapps CLI have lots of function to support our daily activities. The most useful to me of course the command "pac plugin init" that automatically creates Plugin Project. Today, we will learn about Authentication and Solution commands to do export-import across the environment. Installing You can find the download link of the PowerApps CLI on this page. Once you have … Continue reading Dataverse: Export Import Solution from your command prompt using PowerApps CLI

Dataverse: Improve Performance using Partition Key

Do you know we can pass the partitionID parameter when doing CRUD to improve performance? The information I got from this documentation link. Today we will prove how what is the difference between using the partitionID and not using it. To collect the data, I'll run below code: using System; using System.Web.Configuration; using Entities; using Microsoft.Crm.Sdk.Messages; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Messages; … Continue reading Dataverse: Improve Performance using Partition Key

Dynamics CRM: Proving Auto Number Data Type Is Legit!

I just saw┬áNishant Rana's post about the auto-number data type that you can check here. And to be honest, I just knew about it and felt intrigued to test it. My expectation was pretty low about this data type (to handle lots of requests and result to duplicate numbers in the end). TL;DR (Too Long; … Continue reading Dynamics CRM: Proving Auto Number Data Type Is Legit!

Dataverse: Testing Database Transactions On Custom API

After I examined the potentials of Custom API to redefine how we design the system, I was curious if Custom API will also apply database transactions following the plugin event execution pipeline (Pre Operation - Post Operation will be in the transaction. Meaning if during the process got some errors, it will able to rollback). For example, if we … Continue reading Dataverse: Testing Database Transactions On Custom API

Dynamics CRM Plugin Development: Exploring File and Image DataType

Last week, we learned about File DataType and created Custom API to get the FileName and the Base64String Content. Which I thought is already good enough based on the last knowledge that I knew. But then I saw a post from Daryl Labar about his XrmToolbox EarlyBound Generator improvement around four months ago that said it will generate File attribute … Continue reading Dynamics CRM Plugin Development: Exploring File and Image DataType

Dynamics CRM Plugin Development: Create TracingServiceExtensions for Logging Time Information

Have you got an error request time out in the plugin? If the plugin only contains simple business logic, It will not be hard to catch the problem. But what if you got lots of business logic that updating more than one entity? Today we will create simple extension functions that you can implement to … Continue reading Dynamics CRM Plugin Development: Create TracingServiceExtensions for Logging Time Information

Dataverse DevOps: Create Tool for Auto Deployment for WebResource + PluginAssembly

One of the topics I wanted to learn and cover is how to do DevOps in a Dataverse environment. DevOps for me is an operation/process that helps to ensure smooth delivery from developer to operation (end-user). The idea is to remove all the unnecessary/recursive process and automate it so all the stakeholders can focus on … Continue reading Dataverse DevOps: Create Tool for Auto Deployment for WebResource + PluginAssembly