Sub Title

Wednesday, March 15, 2023

Virtual Tables Creation Wizard is now in Public Preview

 

Virtual Tables Creation Wizard is now in Public Preview

Virtual tables are the new buzzword in the world of data management and analytics. They are a great way to simplify data management and enhance productivity. Virtual tables have been around for a while, but the process of creating them has been quite complex and time-consuming. However, that is no longer the case, as the Virtual Tables Creation Wizard is now in Public Preview.

The Virtual Tables Creation Wizard is a new tool that simplifies the process of creating virtual tables. With this wizard, users can easily create virtual tables with a few clicks. It eliminates the need to write complex SQL scripts and reduces the time required to create virtual tables. The wizard is now available for all users to try and test, so anyone can take advantage of virtual tables' benefits.

Virtual tables provide several benefits to data management and analytics. They allow users to create a single source of truth for their data, eliminating the need to create multiple copies of the same data. This results in more accurate and consistent data, crucial for making informed decisions. Additionally, virtual tables can simplify data management by reducing the complexity of data structures and making it easier to access data from multiple sources.

The Virtual Tables Creation Wizard is a user-friendly tool that makes it easy for anyone to create virtual tables. The wizard guides users through creating virtual tables step by step. It asks for the required information, such as the data source and the data structure, and then automatically creates the virtual table. The virtual table can then be accessed and used like any other database table.


 

Virtual Tables Wizard

Navigate to the maker portal. Move to either Tables or Solutions and choose + New table > + New table from external data.








Either you can create a new connection or select to use the SharePoint or SQL Server connection or prompt for another connection to get the data from the desired source.n to get the data from the desired source.


 

After using the connector and getting the table list in the Database, we need to select the table we need to add and click Next.


 

After that, we are presented with the list of mapping columns and the unique column used as a primary key from the source table.


 

After Next, we will see the final Review list and, if needed, any changes and then click on Finish.













Below is the Table that is created in the Dataverse Environment.



 

Benefits of virtual tables for the power platform

Virtual tables, or "materialized views," can benefit Power Platform users. Here are some of the key benefits:

  1. Improved performance: Virtual tables can improve query performance by precomputing and storing complex queries, which users can quickly access.
  2. Simplified data access: By pre-aggregating or filtering data, virtual tables can simplify data access and make it easier for users to find the information they need.
  3. Reduced data duplication: Virtual tables can help reduce storage requirements and improve data consistency by storing precomputed results rather than duplicating data.
  4. Increased scalability: Virtual tables can help improve scalability by reducing the load on underlying data sources, mainly when dealing with complex or resource-intensive queries.
  5. Enhanced security: Virtual tables can provide an additional layer of security by limiting access to specific data sources or tables and restricting the data that can be accessed based on user roles and permissions.

Overall, virtual tables can help Power Platform users improve performance, simplify data access, reduce duplication, increase scalability, and enhance security, making it easier to work with complex data sets and achieve their goals more efficiently.

Conclusion

In conclusion, the Virtual Tables Creation Wizard is an excellent tool for simplifying data management and enhancing productivity. It is now available in Public Preview so that all users can take advantage of its benefits. Whether you are a seasoned data analyst or just starting, the Virtual Tables Creation Wizard is a must-try tool for anyone who wants to simplify data management and make informed decisions.

Tuesday, February 14, 2023

Brief Idea for Navigate To Enhancement in Microsoft Dynamics 365Dataverse

 Microsoft Dynamics 365/Dataverse has been a popular platform for businesses to manage their operations, customer relationship management, and financials. The platform provides various tools and features to help businesses streamline their processes, improve efficiency, and make data-driven decisions. One of the key features in Dynamics 365/Dataverse is the NavigateTo() method, which allows users to easily navigate to different areas of the platform, including records, forms, and pages.

Recently, Microsoft has made some enhancements to the NavigateTo() method in Dynamics 365/Dataverse, making it even more powerful and user-friendly. Here is some of the new enhancements to the NavigateTo() method in Dynamics 365/Dataverse:

Improved Navigation: The NavigateTo() method now provides a more streamlined navigation experience for users, making it easier to access the areas of the platform they need. The new navigation options allow users to jump to specific records, forms, or pages with just a few clicks.

Better Performance: The NavigateTo() method has been optimized to improve its performance, making it faster and more responsive. This will make it easier for users to access the information they need, reducing the time it takes to complete tasks and making the platform more efficient.

Enhanced Customization: The NavigateTo() method now supports customization options, allowing developers to tailor the navigation experience to meet the specific needs of their organization. This will allow businesses to create a more personalized experience for their users, making it easier for them to access the information they need.

Improved Security: The NavigateTo() method has been enhanced to include improved security features, making it even more secure. This will ensure that sensitive information is protected and users can access only the information they need to complete their tasks.

Use Case:

I want to determine which Business Process Flow should be accessible by default when I open an entity record, and I also want to enlarge the currently active stage.

In this example, I'm utilizing the Lead entity, which has two Business Process Flows enabled for it, with Lead to Opportunity Sales BPF as the default BPF.

When you create a business process flow in CRM, a new entity with the name of the business process flow is created in the background. All data pertaining to the business process flow is kept in this entity. In this case, we would need the BPF Process Id, BPF instance Id, and Active Stage Id values from the Business Process Flow entity fields to open the BPF records. I am now utilizing the Dynamics 365 endpoint API to obtain the required value.

Below is the sample code that you can use to achieve this

function openRecordBPFUsingNavigateTo(){
  let pageInput = {};
  let navigationOptions = {};
  try {
   pageInput = {
    pageType:"entityrecord",
    entityName:"lead",
    entityId:"Lead Record Id",
    processId:"BPF Id",
    processInstanceId:"BPF Instance Id",
    isCrossEntityNavigate:true,
    selectedStageId:"Stage Id"
   }
   navigationOptions= {
    target:2,
    height:{ value: 70, unit: "%" },
    width:{ value: 60, unit: "%" },
    position:1
   };
   Xrm.Navigation.navigateTo(pageInput,navigationOptions).then((success)=> { 
    //Code which you want to execute on success
   },(error) => {
    //Code which you want to execute error to handle on exception
   });
  } catch(error) {
   //Code which you want to execute error to handle on exception
  }
}




To know more about the attributes used, please follow this link.

In conclusion, the enhancements to the NavigateTo() method in Dynamics 365/Dataverse will provide a better user experience, improve performance and make it easier for businesses to access the information they need to drive their operations. These enhancements will help businesses take advantage of the power of Dynamics 365/Dataverse and make data-driven decisions to improve their business outcomes

Wednesday, February 1, 2023

Performance Improvement in FetchXml Request

Overview:

We will discuss the common issue that we usually face in our projects. We have slowness of the application, and most of the time, it's identified that we had a FetchXml request that we are using to sync with the Microsoft Dataverse.

Introduction:

When working on dynamic projects, we usually use an easy way to query and execute the FetchXml to get the results. For the construction of the FetchXml, we mostly used Advance Find, and also we can use the Xrm Toolbox for building a FetchXml.

The most common issue we faced was the slowness of the FetchXml query as we moved toward the complexity. There is a way that we can use to resolve this issue.

How to improve the slowness:

The traditional fetch will pull all the columns for the top table records given in the filter criteria. For example, we query to pull 500 records from the table containing 100 columns and 100000 approx. Rows that meet the filter criteria. This case will give us the following issues.

·         To return the result set of 500 records, it pulls almost 99500 rows with all columns and then returns 500 rows.

·         Optimizer for the query can generate an arbitrary order when using the child columns for the retravel but result in a data order we don't want to use.

We can use the LateMaterialize option in the FetchXml request to resolve the slowness issue. It will break the request into smaller, usable segments, improving the performance of long-executing FetchXml requests. The improvement mostly depends on the data distribution for each table and link table used.

After using the LateMaterialize, the created fetch will.

·         Only pulling the primary ID of the top number of records given in the query also fulfilling the filter criteria.

·         Retrieved on the needed data column based on the primary IDs given on the filter criteria. Like if six columns are needed in the given query. It will on retrieving them.

Example for using LateMaterialize in FetchXml:

<fetch version="1.0" output-format="xml-platform" latematerialize="true" mapping="logical" distinct="true">

                <entity name="[entity]">

                                <attribute name="[attribute]" />

                                <link-entity name="[entity]" from="[linked entity]" to="[linked entityid]" link-type="outer" alias="[alias]">

                                                <attribute name="[name of linked entity column]" />

                                </link-entity>

                                <filter type=[filter type]>

                                                <condition attribute="[column]" operator="[operator]" value="[value]"/>

                                </filter>

                </entity>

</fetch>

 

Above is the sample we can use to modify our FetchXml query to resolve the optimization issue.

<fetch version="1.0" output-format="xml-platform" latematerialize="true" mapping="logical" distinct="true">

                <entity name="account">​

                                <attribute name="accountnumber" />​

                                <attribute name="createdby" />​

                                <attribute name="ownerid" />​

                                <link-entity name="account" from="accountid" to="parentaccountid" link-type="outer" alias="oaccount">​

                                                <attribute name="createdby" />

                                                <link-entity name="account" from="accountid" to="accountid" link-type="outer" alias="oaccount1">​

                                                                <attribute name="createdby" />​

                                                                <attribute name="accountid" />​

                                                                <attribute name="name" />​

                                                </link-entity>​

                                </link-entity>​

                                <link-entity name="account" from="accountid" to="accountid" link-type="outer" alias="oaccount2"/>

                                <filter type='and'>​

                                                <condition attribute="statecode" operator="eq" value="2"/> ​

                                </filter>​

                </entity>​

</fetch>

 

So, with the above FetchXml, we are almost retrieving the account hierarchy. As a developer, we know that if we use the self-referential relationship, it will affect the performance of the project badly. Still, by using LateMaterialize, we can resolve that issue.

LateMaterialize is the most beneficial.

·         Query where there are one or more linked conditions to other tables, and their columns are used for the data.

·         Query where there are tables that have many columns and logical columns.

I hope this will be helpful.

Thanks.

Conclusion

So, in this blog, we give you an option that can be utilized to resolve the performance-related issue faced while using FetchXml in the project.  

Friday, January 27, 2023

New Features and enhancement for Power Apps Portal in Power Platform 2023 Release Wave 1

Power Apps Portal, a component of the Power Platform, allows businesses to create and publish web portals for external audiences. The Power Platform 2023 Release Wave 1 brings several new features and enhancements to Power Apps Portal, making it even more powerful and user-friendly.

One of the most notable changes in this release is the introduction of the Power Apps Portal Studio. This new feature allows users to create, edit, and manage web portals using a drag-and-drop interface, making it easier for non-technical users to create and customize portals without coding.

Another new feature is the ability to create custom forms for web pages. This feature allows businesses to create custom forms for specific web pages, such as contact forms or event registration forms, which can be easily embedded into a portal.

The Power Apps Portal also now supports creating and managing custom pages. This allows businesses to create custom pages that can be used for specific purposes, such as landing pages or product pages.

In addition to these new features, the Power Apps Portal has also received several enhancements, including improved performance, enhanced security, and better integration with other components of the Power Platform.

The new features and enhancements in Power Platform 2023 Release Wave 1 make Power Apps Portal an even more powerful tool for businesses looking to create and manage web portals for external audiences. With its user-friendly interface and powerful capabilities, businesses of all sizes can now easily create and customize web portals that meet their specific needs.

Thursday, June 24, 2021

Microsoft Dynamics 365 Trial Instance.

 

In this blog, we will be giving you the steps to create the D365 trial instance. That can be utilized for 30 days. If you want to move that instance from trial to the license instance, you can coordinate with Microsoft.

Below are the steps you need to follow to create the 30 days Microsoft Dynamics 365 Trial instance in a New User interface.

Steps to Create Dynamics 365 Trail Instance

Step 1: Browse the link https://trials.dynamics.com/ .

Step 2: Click on the link Sign up here. As shown in the below image.




Step 3: After that, another prompt window open. Click on the link at the bottom right corner with text No,continue signing up.














Step 4: Now, you will be prompted to give an email address which can be your Work or Personal Email Id. After that, click on Next.















Step 5: Now, you will be prompt to set up the account. For that, click on the Setup account.














Step 6: Once you click on the setup account, you will be asked for personal information and then click on the Next.



















Step 7: Now, you will be asked to provide the Country Code and your Phone number for the OTP verification. You also need to choose either to Text me or Call me. Now click on the Send Verification Code. Keep in mind that which option is selected by you will be used by Microsoft to be informed you of the Verification code that will be needed in the next step.



Step 8: Now, provide the Verification code received from Microsoft on your mobile and then click on the Verify. If you cannot receive the code or the mobile number provided in the last step is wrong. You also can click on the Change my phone number button and then go back to step 7.




















Step 9: Now, you will be asked to provide a unique domain for your trial instance and check its availability by clicking on the Check availability. If that domain is available, click on the Next.

















Step 10: Now, you will be asked to provide the User Name, Password, and Confirm Password for the user that you want to create in the instance. Once you provided it, click on Sign up.





















Step 11: Once the signup is completed, you will see Microsoft's below information page. Save the user id that is displayed under the title You user ID. After that, click on the Get started.

















Step 12: Now, you will be asked to create an environment where you directly get the prompt, as shown below. Or you need to click on the +New button at the top left corner.

Now provide the required fields needed to create the environment like Name, Type (Trial), Region (Nearest region to your location).

Once you completed this form, click on the Next button at the bottom right corner.





Step 13: After that, you will be asked to provide some basic information to create the database for the Trial instance.

You will need to provide some required fields for creating a Database like Language, URL(unique if you want it.), and Currency.

Once you provided it, then click on the Save














Step 14: After saving, you can see that it starts creating the instance and the status of your environment will be PreparingInstance. Once it’s completed, the State will be changed to Ready.

Now, you can open your environment by clicking on the button at the top left corner Open environment



 

 





Hope this will be helpful.

Thanks!!!

Conclusion

So, We have successfully created a trial instance of Microsoft Dynamics 365 instance for 30 days.

 








Friday, June 8, 2018

Progress Indicator using Xrm.Utility in Dynamics 365

Dynamics 365 v9.0 and has come up with many cool features.

Where some of them are related to functionality while others are related to UI.
Well! The list of newly added features is quite long though not exhaustive.
Open Progress indicator using Xrm.Utility in Dynamics 365 v9.0
The one of interesting addition that we saw and which could be a boon for developers is Progress Indicator functionalityWith this functionality, user can display the Progress dialog/Indicator using “showProgressIndicator” function of XRM.Utility namespace.
To achieve this previously, we need to create a web resource which contains the custom logic to display the Progress Indicator/dialog in the CRM, and then use this web resource in order to show the Progress Indicator.
Now with the release of Dynamics 365 v9.0, we can display the Progress Indicator/dialog by using out of the box “showProgressIndicator” function of XRM.Utility namespace, the syntax of the function is as given below.

Xrm.Utility.showProgressIndicator(message);

Where,
message: Is a required argument of type string, message contains the string value which is displayed while showing the Progress Indicator.
Example: Xrm.Utility.showProgressIndicator(“Processing Record”);
We used this function in our JavaScript and the working of this function is cool as seen in the below screenshot.
Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0
Note: In order to closed the above Progress Indicator we would need to call Xrm.Utility.closeProgressIndicator() of Xrm.Utility namespace.
closeProgressIndicator() function don’t have any input argument, and if there is any Progress Indicator is displayed using showProgressIndicator(arg) function, then closeProgressIndicator()closes the progress indicator otherwise closeProgressIndicator() do nothing.
So whenever a user needs to close the Progress Indicator user can use closeProgressIndicator()function.

Thursday, May 31, 2018

Plugin Input and output parameters in Dynamics 365

The InputParameters property contains the data that is in the request message currently being processed by the event execution pipeline. Your plug-in code can access this data. The property is of type ParameterCollection where the keys to access the request data are the names of the actual public properties in the request. As an example, take a look at CreateRequest. One property of CreateRequest is named Target, which is of type Entity. This is the entity currently being operated upon by the platform. To access the data of the entity you would use the name “Target” as the key in the input parameter collection. You also need to cast the returned instance.



// The InputParameters collection contains all the data passed in the message request.
if (context.InputParameters.Contains("Target") &&
    context.InputParameters["Target"] is Entity)
{
    // Obtain the target entity from the input parameters.
    Entity entity = (Entity)context.InputParameters["Target"];

Note that not all requests contain a Target property that is of type Entity, so you have to look at each request or response. For example, DeleteRequest has a Target property, but its type is EntityReference. The preceding code example would be changed as follows.



// The InputParameters collection contains all the data passed in the message request.
if (context.InputParameters.Contains("Target") &&    context.InputParameters["Target"] is EntityReference)
{
    // Obtain the target entity from the input parameters.
    EntityReference entity = (EntityReference)context.InputParameters["Target"];
}
Once you have access to the entity data, you can read and modify it. Any data changes to the context performed by plug-ins registered in stage 10 or 20 of the pipeline are passed in the context to the core operation in stage 30.

Important

Not all fields in an entity record that are passed to a plug-in through the context can be modified. You should check the field’s IsValidForUpdate metadata property to verify that it isn’t set to false. Attempting to change the value of a field that can’t be updated results in an exception.


Similarly, the OutputParameters property contains the data that is in the response message, for example CreateResponse, currently being passed through the event execution pipeline. However, only synchronous post-event and asynchronous registered plug-ins have OutputParameters populated as the response is the result of the core platform operation. The property is of type ParameterCollection where the keys to access the response data are the names of the actual public properties in the response.

Below is the table to explain more about input parameters.

Message Request
InputParameter
Description
Create
Target
Target Contain the Entity with the attributes of current triggering record.
Update
Target
Target Contain the Entity with the attributes whose values have been modified, leadid (primarykey of lead) as well those attributes that have forceSubmit true.
Delete
Target
Target Contain the EntityReference of deleted entity record.
Associate/Disassociate
Relationship,
Target,
RelatedEntities


Relationship Contain the Relationship name for which this plugin fired.
Target Contain the 
EntityReference of record.
RelatedEntities
 Contain the EntityReferenceCollection of Related Entities record.
Win/Lose Request Opportunity
OpportunityClose
OpportunityClose Contain the Entity which is the activity that is created while performing the Win/Lose operation and it contain the attribute opportunityid which give us the opportunity on which this action is perform.