dynamics crm Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/tag/dynamics-crm/ Microsoft Dynamics CRM . Microsoft Power Platform Fri, 17 Jun 2022 18:19:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 dynamics crm Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/tag/dynamics-crm/ 32 32 176351444 Enable Administration Mode from Power Platform Admin Center https://microsoftdynamics.in/2022/06/17/enable-administration-mode-from-power-platform-admin-center/ Fri, 17 Jun 2022 18:19:08 +0000 https://www.inogic.com/blog/?p=31840 Introduction: In this blog, we will see how to enable Administration Mode from Power Platform Admin Center. Enabling the Administration Mode comes in handy while performing operational changes to the environment like copying a sandbox instance to the production. Previously, this setting was available from the Office 365 portal for sandbox instances. For more details,...

The post Enable Administration Mode from Power Platform Admin Center appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction:

In this blog, we will see how to enable Administration Mode from Power Platform Admin Center. Enabling the Administration Mode comes in handy while performing operational changes to the environment like copying a sandbox instance to the production. Previously, this setting was available from the Office 365 portal for sandbox instances. For more details, you can refer to this blog.

Administration Mode can be enabled for Sandbox, Production, and Trial (Subscription-based) instances. So once enabled, only the users with the security role of System Administrator and System Customizer can access the environment. Enabling the Administration Mode ensures that neither non-administrators nor administrators affect each other’s work.

Let’s see how to configure ‘Administration Mode’:

  1. Navigate to Power Platform Admin Center Login with Environment Admin or System Administrator -> Navigate to Environment from the left-side menu.

Enable Administration Mode from Power Platform Admin Center

  1. Select the Environment and Click on Open.

Enable Administration Mode from Power Platform Admin Center

  1. In Details, select Edit.

Enable Administration Mode from Power Platform Admin Center

  1. Enable the Administration Mode.

Enable Administration Mode from Power Platform Admin Center

  1. Post enabling the Administration mode, you will get the option to disable or enable the Background Operation. By default, this option is enabled.

If you disable the Background Operation, it will disable all asynchronous operations like workflow, and synchronization with Exchange.

Enable Administration Mode from Power Platform Admin Center

  1. Now the Custom Message field is no more editable as it is being removed -> Click on Save.
  2. After saving, the environment gets updated.

Enable Administration Mode from Power Platform Admin Center

Once it is completed, you can see a notification on the Environment page stating that ‘This environment is currently in administration mode, so only admins can sign in to it. You can turn off administration mode in settings’.

Enable Administration Mode from Power Platform Admin Center

Now, only users with System Administrator or System Customizer security role can successfully access the environment.

Enable Administration Mode from Power Platform Admin Center

Whereas, other end users i.e. non-admin users will not be able to access the environment.

Enable Administration Mode from Power Platform Admin Center

Conclusion:

In this way, administrators can manage and maintain the environment by setting it in the ‘Administration Mode’ from Power Platform Admin Center.Map My Relationships

 

Please visit the Source and support them

The post Enable Administration Mode from Power Platform Admin Center appeared first on Microsoft Dynamics 365 Blog.

]]>
4559
3 Best Practices for Increasing your Lead Conversion Rates – Lead Assignment and Distribution Automation in Dynamics 365 CRM is what you need! https://microsoftdynamics.in/2021/09/09/3-best-practices-for-increasing-your-lead-conversion-rates-lead-assignment-and-distribution-automation-in-dynamics-365-crm-is-what-you-need/ Thu, 09 Sep 2021 17:46:31 +0000 https://www.inogic.com/blog/?p=29290 Most of you would be well acquainted with our popular assignment automation app for Dynamics 365 CRM – Lead Assignment and Distribution Automation. Already a Preferred app on Microsoft AppSource, Lead Assignment and Distribution Automation is a productivity app that automates the allocation or distribution of Leads (or any other entity records) recorded in Dynamics...

The post 3 Best Practices for Increasing your Lead Conversion Rates – Lead Assignment and Distribution Automation in Dynamics 365 CRM is what you need! appeared first on Microsoft Dynamics 365 Blog.

]]>
lada

Most of you would be well acquainted with our popular assignment automation app for Dynamics 365 CRM – Lead Assignment and Distribution Automation. Already a Preferred app on Microsoft AppSource, Lead Assignment and Distribution Automation is a productivity app that automates the allocation or distribution of Leads (or any other entity records) recorded in Dynamics 365 CRM. In this way, it ensures that Leads are not mismanaged or overlooked and are assigned to users automatically thereby improving the chances of creating new customers and increasing sales.

Now, let’s reiterate why Lead Assignment and Distribution Automation is the apt app for assigning Leads, Cases or any other entity records in Dynamics 365 CRM.

Say Goodbye to Manual Assignment of Leads

With this assignment automation app, you can assign Leads (or other entity records) to your team members using Round Robin or Capacity Algorithm. With Round Robin algorithm, the incoming Leads will be evenly distributed among your team members. If there are three members in your team and there are six incoming Leads then each member will be allotted two Leads.

Distribution Automation in Dynamics 365 CRM

But with Capacity Algorithm, the individual capacity of each team member will be taken into consideration. Here, you will be given the provision to determine the capacity of each team member depending upon their experience. And based on this capacity Leads will be allocated to your team members. Here, the most experienced team member will be assigned more Leads as compared to the least experienced team member.

Distribution Automation in Dynamics 365 CRM

Assign Leads in Sequence

With this feature of Lead Assignment and Distribution Automation, you can set a sequence or order to distribute the Leads to your team members. This will work for both Round Robin and Capacity algorithm and the Leads will be assigned from lowest to the highest sequence. So based on performance, experience or any other factors you can decide to set a sequence and determine who will be the first to get the share of incoming Leads.

Distribution Automation in Dynamics 365 CRM

Partnership in Leads

With Lead Assignment and Distribution Automation app, you can automate the process of transferring Leads from one team member to another by using workflows (Classic & Power Automate Flows) in Dynamics 365 CRM. There may be cases, where it may seem prudent to first assign Leads to one team member for initial footwork and then assign it to another team member for sales conversion. This will build partnership between team members and enhance productivity.

Now, all of these processes which used to be done manually can be automated with this amazing app. You have to just do three things – Get it, set it and forget it. In other words – get Lead Assignment and Distribution Automation app set it as per your requirements and then forget about it.

Sounds tempting, isn’t it?

Then go to our website or Microsoft AppSource to download this amazing assignment app for a free trial of 15 days and experience how automation of Lead assignment can boost your overall productivity.

And feel free to share your experience and expectations at crm@inogic.com

While we have been talking about Leads how can email marketing be left behind – it’s time to also look at our latest integration app – Marketing4Dynamics which integrates Mailchimp (one of the most famous and used email marketing software across the globe) with Dynamics 365 CRM.

Until then – Stay Healthy, Stay Wealthy!

Please visit the Source and support them

The post 3 Best Practices for Increasing your Lead Conversion Rates – Lead Assignment and Distribution Automation in Dynamics 365 CRM is what you need! appeared first on Microsoft Dynamics 365 Blog.

]]>
4440
How to get quick results by using ‘Global Intelligent Search’ https://microsoftdynamics.in/2021/07/09/how-to-get-quick-results-by-using-global-intelligent-search/ Thu, 08 Jul 2021 20:00:55 +0000 https://www.inogic.com/blog/?p=28562 Introduction: In the recent release, Microsoft added one powerful feature called ‘Global Intelligent Search’. In this blog, we will see how the admin can enable this for the organization and how it helps the user, and some tricks to get quick results. Enable Relevance Search: In the Power Platform admin center, select an environment. Select Settings> Product > Features. Under Search,...

The post How to get quick results by using ‘Global Intelligent Search’ appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction:

In the recent release, Microsoft added one powerful feature called ‘Global Intelligent Search’. In this blog, we will see how the admin can enable this for the organization and how it helps the user, and some tricks to get quick results.

Enable Relevance Search:

  1. In the Power Platform admin center, select an environment.
  2. Select SettingsProduct > Features.
  3. Under Search, set Relevance Search to On.
  4. Select Save.

Global Intelligent Search

Note: Once you enable this option it will take 5-10 min.

Click Here to Know more about relevant search configuration.

Once Admin is done with enabling and configuring the option then within CRM a search option will be available on the top.

Global Intelligent Search

Now we will show you some tricks so that you can easily find records quickly using binary operations.

1. Here, first I entered ‘Contoso’ and saw that it is showing all the records with the word Contoso.

Global Intelligent Search

2. Next, I entered the Account name + primary contact name as ‘Contoso + Calvin’ and it displayed only those records whose account name starts with Contoso and primary contact is Calvin. So, by using ‘+’ button you will get an exact match.

Global Intelligent Search

3. But now, I’m looking for a record where the account name contains Contoso or contact person is Calvin. In this situation, I’ll use ‘Account name | primary contact name’ format i.e., ‘Contoso | Calvin’. Now it displayed all the records whose account name starts with Contoso and primary contact is Calvin. Here by using ‘|’ button, I will get all the records whose account name is Contoso or primary contact is Calvin.

Global Intelligent Search

4. Similarly, now I want all accounts to start with Contoso but primary contact should not start with Calvin. For this, I will search by using Account name + (-Primary contact name). So I will enter ‘Contoso –Calvin’ in the search option and it will get all account records except the primary name starting with Calvin.

Global Intelligent Search

5. Sometimes it happens that you don’t know exact spelling or you just know the start or end word of any field. In this case, you can use ‘*’ before or after any word so it will give all the records as per the asterisk mark. In the below case, I entered ‘Con*’ so it will get all records starting with Con.

Global Intelligent Search

6. If you are looking for an exact match then just enter the word in the double quotation so it gets only those records which are exactly matched.

Global Intelligent Search

Also, when we search for any records then we mostly perform some common actions. These are now by default available within the search result called as ‘Quick Actions’. So, now you don’t need to open the records to perform an action. You can simply search for the records and perform actions as the actions are available there itself as shown below.

Global Intelligent Search

In the next blog, we will see how Quick Actions can be configured.

Please visit the Source and support them

The post How to get quick results by using ‘Global Intelligent Search’ appeared first on Microsoft Dynamics 365 Blog.

]]>
4399
Load Data in Dynamics 365 CRM using Azure Copy Data Activity tool https://microsoftdynamics.in/2021/06/30/load-data-in-dynamics-365-crm-using-azure-copy-data-activity-tool/ Wed, 30 Jun 2021 10:48:36 +0000 https://www.inogic.com/blog/?p=28423 Introduction We recently had a business requirement to load data in Dynamics 365 CRM. We had a case where the user will create Account records in a CRM and at the end of the day, it should load records in the other Dynamics 365 CRM. To achieve this we have used the Azure Copy Data...

The post Load Data in Dynamics 365 CRM using Azure Copy Data Activity tool appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction

We recently had a business requirement to load data in Dynamics 365 CRM. We had a case where the user will create Account records in a CRM and at the end of the day, it should load records in the other Dynamics 365 CRM. To achieve this we have used the Azure Copy Data Activity tool, also we have configured scheduling on the “Copy Data” tool so it will Upsert records in the target system once a day.

In this blog, we have explained how we have configured the ‘Azure Copy Data Activity’ tool to Load records. So, let’s have a look at the steps we followed to achieve the same.

Step 1: Connect to the Azure https://portal.azure.com and navigate to the Data factory. If you don’t have a Data factory then create it first to use the ‘Copy Data Activity tool’.  Please refer to the below link to know how to create a Data factory:

https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-portal#create-a-data-factory

Step 2:  We already have a Data factory i.e. “DataLoadActivity”, so we are using that but to add the Copy Data Activity tool, you need to add a pipeline.

DataloadActivity (Data factory) -> Author & Monitor -> Author -> Create new/Existing Pipeline -> Drag and Drop Copy Data.

Please refer to the below screenshots:

Navigate to Author & Monitor

Load data in D365 CRM

Navigate to Author

Load data in D365 CRM

Add Pipeline

Load data in D365 CRM

Drag and Drop ‘Copy Data’ tool.Load data in D365 CRM

Load data in D365 CRM

We can change its name from the ‘General tab’, we have renamed it as ‘Load Accounts’.

Load data in D365 CRM

Step 3: In the next step, we need to add a new dataset and configure a connection with Dynamics 365 CRM. To configure the dataset, we need to click on the Dataset menu and add New Dataset as shown below:

It will open the Data Stores window. Here we need to select Dataverse (Common data service for app) and click on continue.

Load data in D365 CRM

Once the dataset is added, we need to add link services. To add link services, click on the +New button and it will open another window where we need to set CRM connection details.

Load data in D365 CRM

Here, we need to pass details i.e., Name, Service Url, Authentication type(AAD Service Principal), Service Principal Id(Azure Active directory App Id) and service principal key(secret key) details. And after the ‘Test connection’, click on Create.

Load data in D365 CRM

  • Name: Connection name
  • Connect via integration runtime: AutoResolveintegrationruntime
  • Deployment Type: It has two options i.e. Online and OnpremisewithIfd. As we are connecting to Dynamics 365 CRM online, so need to select online.
  • Service uri: Dynamics 365 CRM url
  • Authentication Type: It has 2 options i.e. AAD service Principal and office365. Need to select ‘AAD service Principal’ option. FYI, office365 is deprecated now.
  • Service Principal credential type: Select ‘service principal key’ and then it will ask to enter Azure Active directory App Id and secret key.
  • Service Principal ID: Need to pass Azure Active Directory Application(client) Id.
  • Service Principal Key: Need to pass Azure Active Directory Secret key.

To establish a connection, you must have Azure Active Directory and use the App Id and secret key from the Azure Active Directory app. You can refer to the below article to know about how to configure/create Azure Active Directory app:

https://www.inogic.com/blog/create-azure-active-directory-app

Once Azure Active Directory app is configured, you need to create an Application user in CRM. To configure the Application user, we need to pass Azure Active Directory Application ID (App Id) as shown below:

Load data in D365 CRM

After this, we need to select the table name under connection. As we want to load data for the Account table so here we select the Account table. Using the same way, we have set up a dataset/connection for both Source and Target CRMs.

Load data in D365 CRM

Step 4: Now, we can set up the “Copy Data” tool. In the first step, we need to set up a Source detail, as shown below. Here, we have selected a table but as per the requirement, we can also select Query and pass the fetchxml query.

Load data in D365 CRM

Step 5: Next, we need to set up Sink details. Here we have selected Target CRM and selected behavior as Upsert. Also, it has other properties i.e. to ignore null values, perform upsert based on Alternate key, etc.

Load data in D365 CRM

Note: If you don’t want to upsert the record based on the Primary key field (i.e., accountid) then you can use the Alternate key property. You need to set an alternate key in your target CRM table field and then the alternate key will display here under the Alternate key name list.

Please refer to the below article to know how we can configure alternate key in CRM:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/define-alternate-keys-reference-records?view=op-9-1#define-alternate-keys

Step 6: Once Sink details are configured, we need to set field mapping as shown below:

Load data in D365 CRM

Note: If you don’t see mapping fields, please click on Import Schemas.

Step 7: We can also add a trigger and configure scheduling to trigger the ‘Copy Data’ tool.

Load data in D365 CRM

It has multiple options to set trigger i.e., minutes/hourly/day/week. As per our requirement, we have set it to Day(s), as shown in the below screenshot

Load data in D365 CRM

Step 8: Publish all.

Load data in D365 CRM

We can also monitor the run history. To check the run history please navigate to Monitor -> Pipeline run.

Load data in D365 CRM

Also, we can run the pipeline by clicking on Debug without setting any Trigger, please refer to the below screenshot:

Load data in D365 CRM

Note: I couldn’t get the option/behaviour to perform only Update operation instead of using Upsert.

Conclusion:

As illustrated above, with the help of Azure Copy Data Activity tool, we can load data in Dynamics 365 CRM.

Reference link: https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-copy-data-tool#start-the-copy-data-tool

Click2Undo

Source

The post Load Data in Dynamics 365 CRM using Azure Copy Data Activity tool appeared first on Microsoft Dynamics 365 Blog.

]]>
4393
Azure Functions, Web API, PowerApps and other tricks for Dynamics 365 CRM – Most Clicked Blogs of the Year! https://microsoftdynamics.in/2021/06/20/azure-functions-web-api-powerapps-and-other-tricks-for-dynamics-365-crm-most-clicked-blogs-of-the-year/ Sun, 20 Jun 2021 16:27:17 +0000 https://www.inogic.com/blog/?p=15269 Powered by passion – Inogic is a leading Microsoft ISV for Dynamics 365 CRM for over more than a decade. We brew innovative products and fuel Dynamics 365 with our range of solutions. Inogic also offers bespoke high-quality low-cost offshore development services for Microsoft products such as Power BI, Flow, PowerApps, Portals and others. Given...

The post Azure Functions, Web API, PowerApps and other tricks for Dynamics 365 CRM – Most Clicked Blogs of the Year! appeared first on Microsoft Dynamics 365 Blog.

]]>
PowerApps

Powered by passion – Inogic is a leading Microsoft ISV for Dynamics 365 CRM for over more than a decade. We brew innovative products and fuel Dynamics 365 with our range of solutions. Inogic also offers bespoke high-quality low-cost offshore development services for Microsoft products such as Power BI, Flow, PowerApps, Portals and others.

Given our super modern slick technology, we believe in sharing tips and tricks with our community from time to time. Therefore, we come up with informative blogs and are quite active on community forums. In this blog we are going to compile the top five blogs of 2018 which have been most clicked. Compiling them again for our friends who missed these posts. Thank you so much for sharing our posts and encouraging us to explore Dynamics 365 and Power Platform.

Dynamics 365 v9.0: Xrm.WebApi – CRUD Operations Part – 1

This blog talks about how Xrm.WebApi acts as a boon for developers. In the versions prior to v9.0 one had to create their own libraries or use third party libraries or create XmlHttpRequest and AJAX request. With Xrm.WebApi enhancement in Dynamics 365 CRM v9.0 developers’ life is made easy. In a continuation to this blog Dynamics 365 v9.0: Xrm.WebApi – Operations Part – 2 we have discussed how to Retrieve Multiple records and Execute Actions.

Integrating Dynamics 365 with Azure Functions – Part 1, Part 2, and Part 3

Azure function is a server-less architecture where you can host your code on cloud without any infrastructure. In this blog we have taken example of creating Azure function and called same through workflows. We have also depicted how a function can be executed as an HTTP request. This series of blogs talks about invoking Azure functions from Dynamics 365.

Working on Lookup Field of Dynamics 365 in PowerApps

PowerApps allows building business Apps that run cross platform. Citizen developers with minimal development capabilities can build Apps and deploy them for usability. These apps are modular in nature and these can be dragged and dropped to build an App in short span of time. It allows anyone in an organization unlock new business agility.

Given a business requirement we needed to set lookup fields using PowerApps in Dynamics CRM. This is not inherently supported in PowerApps so after a little research we found out the solution to this. This blog explains the steps to read and set Lookup fields of Dynamics 365 in Power Apps.

Show Lookup Dialog in Dynamics 365 v9.0

This blog discusses about how using the new feature introduced in Microsoft Dynamics 365 v9.0 users can show lookup dialog using Xrm.Utility.lookupObjects method. The parameters required for Xrm.Utility.lookupObjects are list of the entities to be displayed, default entity to be shown in lookup window, Guid of default view, specification whether to allow user to select multiple records and list of views that need to be available for lookup dialog. Using these parameters a lookup dialog can be seen.

JavaScript: “Execution Context” provides Form Values on Web as well as UCI in Dynamics 365 v9.0

After the introduction of UCI there is a generic interface for the end users, this is about UI but behind the scene for developers Microsoft provided “Execution Context” object which is a collection of array. This blog talks about how we can pass the Execution Context using “Primary Control” CRM Parameter to Script function which we can call on Click of Custom Button.

If you want to explore more informative blogs visit this space.

We provide services for PowerApps, Microsoft Flow, Microsoft Portal, Power BI and others. Contact us for any query, suggestion or feedback at crm@inogic.com

Keep Exploring!

Please visit the Source and support them

The post Azure Functions, Web API, PowerApps and other tricks for Dynamics 365 CRM – Most Clicked Blogs of the Year! appeared first on Microsoft Dynamics 365 Blog.

]]>
4349
Power Platform: How to Build AI Object Detector using Power Platform https://microsoftdynamics.in/2021/06/20/power-platform-how-to-build-ai-object-detector-using-power-platform/ Sun, 20 Jun 2021 04:44:25 +0000 https://www.inogic.com/blog/?p=20676 Introduction In this AI Builder three-part blog series, first blog was about how to use AI Builder to extract Form document data and second blog highlighted the use of AI Builder Text classification model. Now in the third and final blog we will see how to build an AI Object Detector using Power Platform. Object...

The post Power Platform: How to Build AI Object Detector using Power Platform appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction

In this AI Builder three-part blog series, first blog was about how to use AI Builder to extract Form document data and second blog highlighted the use of AI Builder Text classification model.

Now in the third and final blog we will see how to build an AI Object Detector using Power Platform.

Object detection refers to the capability of computer and software systems to detect images, locate objects in an image and identify each object. Object detection can be used to expedite or automate business processes in multiple industries.

AI Object detection is a new feature in Power Platform which can be accomplished using AI Builder. AI Builder allows you to add artificial intelligence to your apps even if you have no coding or data science skills.

Let’s see how an AI object detection model is built using AI builder. On the other hand, Object detection App is built using PowerApps and data is transferred from PowerApps to Dynamics 365 CRM using Microsoft Flow in Power Platform.

1. Build Object Detection Model using AI Builder

a. To build a model using AI Builder, sign in to PowerApps and, in the left navigation pane, select AI Builder > Build. Then select the Object Detection model type.

How to Build AI Object Detector using Power Platform

b. Name your model and Create

c. Select object names – Select the object names by selecting an entity from Common Data Service. Here, we have selected a custom entity with name ‘Electronic Item’ and Field ‘Name’. This entity has records with name of electronic items like Monitor, Keyboard, Mobile and Mouse.

How to Build AI Object Detector using Power Platform

How to Build AI Object Detector using Power Platform

d. Add images – Click on ‘+Add Images’ button to upload images of objects that you want to detect and identify. Upload 15+ images of each object.

How to Build AI Object Detector using Power Platform

e. Tag images– Teach the model to identify objects by tagging and labeling them. For each image, draw a rectangle around the object which you want to identify and tag it with correct name. Go through all the images to tag the objects. Once all the images have been tagged, click on Done tagging.

How to Build AI Object Detector using Power Platform

f. Train Model – Click on Next >Train. It will take several minutes to train the model. Use Quick Test to test the model’s accuracy and then Publish the model to consume it in the app.

Once the model is published its status changes to Live from Draft.

How to Build AI Object Detector using Power Platform

How to Build AI Object Detector using Power Platform

2. Build Object Detector App using PowerApps

a. Click on Create app button shown in previous step. You can create a Canvas App or Model-driven App or Portal from blank depending upon your choice. In our example, we are creating a Mobile Canvas App.

b. Insert Object Detector by navigating to Insert > AI Builder > Object detector. Drag the Object detector to your screen and select the existing object detector AI model.

How to Build AI Object Detector using Power Platform

The object detector control looks like below:

How to Build AI Object Detector using Power Platform

c. Insert a Gallery Control with Title and subtitle layout.

How to Build AI Object Detector using Power Platform

Set the properties of Gallery and its Title and SubTitle as follows:-

Gallery Items  = ObjectDetector1.VisionObjects

Title Text = ThisItem.displayName

Subtitle Text = ThisItem.count

d. Insert some label controls for storing the values of Count for each individual item i.e. Monitor, Keyboard, Mobile and Mouse Counts and set their text properties.

How to Build AI Object Detector using Power Platform

For Example: –

lblKeyboard.Text =First(ObjectDetector1.VisionObjects).count

lblMobile.Text= First(Filter(ObjectDetector1.VisionObjects,StartsWith(displayName,”Mobile”))).count

lblMonitor.Text= First(Filter(ObjectDetector1.VisionObjects,StartsWith(displayName,”Monitor”))).count

lblMouse.Text= Last(ObjectDetector1.VisionObjects).count

You can make your own formula by utilizing the Gallery or Object Detector controls

e. Insert a Create button. Click on Create button, navigate to Action > Flows > Select the existing flow or Create a new Flow as described in 3rd point. It will start processing and add the selected flow to PowerApp.

How to Build AI Object Detector using Power Platform

Modify the function of Onselect as shown below by passing the parameters to the flow. Here, CreateElectronicEntry is the name of flow.

OnSelect =CreateElectronicEntry.Run(Concat(Gallery1.AllItems,displayName & “-” & count & “,”),lblMobile.Text,lblKeyboard.Text,lblMonitor.Text,lblMouse.Text)

f. Save and Publish the App.

3. Pass data from PowerApps to Dynamics 365 CRM using Microsoft Flow

You can pass data to Dynamics 365 CRM using the Patch statement on click button in PowerApps itself but here we are showing it using a flow because Microsoft flow has many capabilities and you can perform so many tasks by connecting your app to different connectors depending on your business requirements.

a. Create a new instant Flow with trigger of PowerApps.

b. Add New Step >> Search for an Action ‘Common Data Service’ >> Create a New record.

c. Select your ‘Environment’ and ‘Entity Name’. We have created another custom entity ‘Electronic Entry’ which has the fields Monitor, Keyboard, Mobile and Mouse which shows the count of these devices.

d. Map the fields by clicking on ‘Ask in PowerApps’. It will automatically map relevant PowerApps fields with the CRM fields.

e. Save the flow.

How to Build AI Object Detector using Power Platform

4. Run the App

You can capture an image from your mobile camera or select an existing image from Gallery. Click on the Detect button. The objects will be identified if it matches with trained objects and the list would show count of each object detected in the image.

AI

When Create button is clicked it triggers the flow which creates a record in CRM as shown below: –

How to Build AI Object Detector using Power Platform

Conclusion

In this way, you can build AI Object detection App which is an easy to use tool, just point and click, to tailor AI in your business as per your requirements. Object Detection lets you to count, locate and identify selected objects within any image. You can use this model in PowerApps to extract information from pictures you take with the camera.

Please visit the Source and support them

The post Power Platform: How to Build AI Object Detector using Power Platform appeared first on Microsoft Dynamics 365 Blog.

]]>
4339
Interacting with Power Automate Flows from Power Apps – Canvas Apps https://microsoftdynamics.in/2021/06/20/interacting-with-power-automate-flows-from-power-apps-canvas-apps/ Sun, 20 Jun 2021 04:44:05 +0000 https://www.inogic.com/blog/?p=21406 Introduction It is well-known that Power Automate is a low-code, no-code solution to automation with various triggers that it supports including Event driven, HTTP request, Timer/Scheduled and Manual flows. Manual/Button flows help in designing powerful Canvas Apps that can offload complex logic executions to flow while focusing on user experience of the app. In this...

The post Interacting with Power Automate Flows from Power Apps – Canvas Apps appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction

It is well-known that Power Automate is a low-code, no-code solution to automation with various triggers that it supports including Event driven, HTTP request, Timer/Scheduled and Manual flows.

Manual/Button flows help in designing powerful Canvas Apps that can offload complex logic executions to flow while focusing on user experience of the app. In this article we will discuss an example to call a flow and pass user inputs received in Canvas Apps to the flow – have the logic execute there and return resulting value to the Canvas Apps for display.

In this example, we have a canvas app that accepts requested meeting time, the app then calls the flow to check availability for the said time, if the time slot is unavailable, it will return false to app to notify the user accordingly.

I have shared the key settings to achieve this by using Case entity from Dynamics 365 CRM. A quick design of the entry form is given below:

Interacting with Power Automate Flows

Note the customer field when placed on form does not show up the field on Canvas for data entry. Lookup fields are not currently supported. Here is how I got this to work:

Interacting with Power Automate Flows

Select the Data card created for Customer when you include that field on the form from tree view and then choose Insert Drop Down.

Interacting with Power Automate Flows

Set the properties of the drop-down as shown below:

Items = Sort(Accounts,’Account Name’) – This will show the list of accounts sorted by name.

With the Customer_DataCard3 still selected in the tree view add a Label and set the name to ‘Customer’.

With this done, we now get the drop down of accounts listed. However, the value selected in the drop-down will not be submitted as the value for Customer Card and therefore will not be saved in database when we submit the form.

To be able to edit the property to the Card, we need to first Unlock it by clicking on lock icon.

Interacting with Power Automate Flows

Next, we edit the Update property of card to set the value as Dropdown1.Selected as shown below:

Interacting with Power Automate Flows

With this done, any change in the value of dropdown will bind the selected value to the customer property.

Next let’s work on designing the Power Automate Flow that need to call to check availability.

For this, choose the OnSelect property of Request button and choose Action à Power Automate to bring up the following screen.

Interacting with Power Automate Flows

As we do not have our flow already designed, we choose ‘Create a new flow’ which navigates us to the flow designer.

Type PowerApps in the connector search bar and select the PowerApps trigger.

Interacting with Power Automate Flows

This would be the trigger to be used to invoke the flow from Canvas Apps. Do note that only flows that are based on PowerApps trigger would show up in the Power Automate action list for selection.

Here is a screenshot of a very simple flow designed for this blog.

Interacting with Power Automate Flows

In order to generate a parameter for the flow, choose the ‘Ask in PowerApps’ option from Dynamic content. This will auto generate a parameter for you for the base time field as shown below.

Interacting with Power Automate Flows

In order to return a value back to the calling App use the action ‘Respond to a PowerApp or flow’.

Interacting with Power Automate Flows

Now set the value you need to return. Define the data type that you want to return by clicking on ‘Add an output’.

Interacting with Power Automate Flows

Note that you could return more than one value back to the calling App. It is received in the calling app in the form of a record with each output parameter name as a field in that record.

Save the flow and now let’s move back to the canvas app to call this in our app.

3Interacting with Power Automate Flows

On the Request button in canvas app, we pass the date value selected in the First Response By field and send it to the flow as a parameter for evaluating availability. The flow returns a Boolean value based on its evaluation.

Set the following on the OnSelect property of Request button.

Set(Available, ‘PowerApp->Performanunboundaction,RespondtoaPowerApporflow’.Run(‘First Response By_DataCard1’.Update));If(Available.result,SubmitForm(Form1);NewForm(Form1), Notify(“Invalid date entered”));

Using Set() function we are storing the return value from the Flow to the variable named Available.

‘PowerApp->Performanunboundaction,RespondtoaPowerApporflow’.Run(‘First Response By_DataCard1’.Update))

In the above statement, we make a call to the Power Automate Flow and pass the value of the First Response By field.

Notice, we access the output parameter returned from flow as

Available.result – where result is name of the output parameter defined.

This now completes the canvas app, and you are ready to test it by entering values in the app.

Notes:

  1. Begin designing the canvas app and flow from within the context of a solution
  2. Work with the Common Data Service (Current) connector.
  3. When Perform Unbound Action action is added, we are unable to invoke the flow from the Canvas Apps, this problem could be solved using Child Flows!!

Conclusion

In this way, we would be able to design a Canvas App (no-code) and have the business logic execute written as a Custom Action (pro-dev) by using a (no-code/low-code) Flow – The no-cliff solution to building powerful apps.

Please visit the Source and support them

The post Interacting with Power Automate Flows from Power Apps – Canvas Apps appeared first on Microsoft Dynamics 365 Blog.

]]>
4337
Use Relevance Search API in Power Automate & Canvas App – Part 2 https://microsoftdynamics.in/2021/06/19/use-relevance-search-api-in-power-automate-canvas-app-part-2/ Sat, 19 Jun 2021 05:14:08 +0000 https://www.inogic.com/blog/?p=26433 Introduction In the previous blog, we obtained the response from the Relevance Search API request through Power Automate Flow. In this blog, we will use that response in the Canvas app. We will see how we can leverage the potential of Relevance search in the Canvas app. If you are not familiar with how to...

The post Use Relevance Search API in Power Automate & Canvas App – Part 2 appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction

In the previous blog, we obtained the response from the Relevance Search API request through Power Automate Flow. In this blog, we will use that response in the Canvas app. We will see how we can leverage the potential of Relevance search in the Canvas app.

If you are not familiar with how to create Canvas app then you can refer the following article,

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/get-started-test-drive

Let us start with creating a new canvas app,

• Sign in to https://make.powerapps.com and create a new Canvas app.

canvas app

• As we are going to create Canvas app for Dynamics 365 app, we will select the Common Data Service Phone Layout,

common data service

• In the next screen, we will first add the connection then add the table.

add connection

• This will create a canvas app with default Browse, Detail and Edit screen. As we are going to work with Contact and lead, we added the screens for Lead and Contact.

create canvas app

• We will now add a new screen for the Relevance Search, like shown below

add relevance screen

• We will call Power Automate Flow that we have created in the previous blog upon OnSelect of the Search button and upon OnChange of the textbox.

We will use below expression OnSelect of the button and on OnChange of the textbox.

Relevance Search API in canvas

This expression will run the ‘RelevanceSearchAPIFlow’ and will pass the text entered in the TextBox. After successful run, it will store the response in the Collection called “SearchCollection”.

• Save and run the App. Enter some text in the Textbox and either click enter or click on the Search Button. In the background, a Power Automate Flow should run successfully and response should get stored in the ‘SearchCollection’ collection.

• To check the collection, click on View -> Collections

collection

You should see the response added in the collection.

response added in collection

• Now we will use this collection to bind to the List control. Select the List control and add the below expression to the Items property,

Relevance Search API in canvas

Here we are assigning non-empty items from the SearchCollection collection to the List control.

list control

• After this, select the List control and add below expression OnSelect property of the control.

Relevance Search API in canvas

Here we are extracting and setting the GUID of the record that we have in the collection to the ‘SelectedItemID’ variable.

extracting & setting GUID

• We will now bind the record values to the list item. Select the first label and add below expression,

Relevance Search API in canvas

Here we are binding the primary field value of the record.

binding primary field value

Similarly, select the second label and add below expression,

Relevance Search API in canvas

Here we are binding the Entity logical name to understand the entity type of the record,

entity logical name

• Select the ‘NextArrow’ button and add below expression upon OnSelect property,

Relevance Search API in canvas

Here we are first setting the GUID of the record to the SelectedItemID variable and then switching the Detail screen based on the Entity logical name. For example, if the entity is Contact, we are navigating the screen to DetailsScreenContact_1 and if the entity is lead, we are navigating to the DetailsScreenLead_1 screen.

advanced

• Now select the Detail screen where we will see the details of the record. Add below expression to Item property of the DetailScreen,

This expression is for the contact screen,

Relevance Search API in canvas

detail screen contact

Similarly, add expression for other details screen,

This expression is for the Lead screen,

Relevance Search API in canvas

detail screen lead

• Here we have setup the detail screens of lead and contact to show up the record details on click of the Search Results item from Relevance Search Screen.

Relevance Search screen,

relevance search screen

On click of the next arrow button, it will open the appropriate entity record.

lead

• You can add entities that you need and you can add fields to show up in the detail screen or the search result.

This way we can execute the Relevance search API from Canvas App and represent the Search results using List control.

Conclusion

You can use the logic explained in this blog to add Relevance search into your Canvas app.

Below is the small clip of the working Relevance Search screen,

Please visit the Source and support them

The post Use Relevance Search API in Power Automate & Canvas App – Part 2 appeared first on Microsoft Dynamics 365 Blog.

]]>
4303
How to Build Responsive Canvas Apps https://microsoftdynamics.in/2021/06/18/how-to-build-responsive-canvas-apps/ Fri, 18 Jun 2021 17:18:11 +0000 https://www.inogic.com/blog/?p=26471 Introduction Recently Microsoft has released the preview of the new horizontal and vertical container in the Canvas apps layout. While building the apps it is essential that apps are uniform and responsive within any type of device or different screen sizes for an optimized user experience. These layout containers improve the creation of responsive apps...

The post How to Build Responsive Canvas Apps appeared first on Microsoft Dynamics 365 Blog.

]]>
Introduction

Recently Microsoft has released the preview of the new horizontal and vertical container in the Canvas apps layout. While building the apps it is essential that apps are uniform and responsive within any type of device or different screen sizes for an optimized user experience. These layout containers improve the creation of responsive apps with less effort.

Let’s see how we can use this layout container in our apps.

To enable this feature:

1. Go to the respective app and navigate to the File > Settings > Advanced Settings > Enable Layout containers as shown below:

Build Responsive Canvas Apps

Note: The Horizontal and Vertical Container feature is in preview.

2. Also, make sure to disable the below setting and click on the Apply button:

Build Responsive Canvas Apps

Then, go to the Home screen > Insert > Layout > Horizontal container and add it to the canvas. This will add the blank layout on the canvas and we can add containers inside this layout.

 

Build Responsive Canvas Apps

Or, we also get three new screen templates as Split-screen, Sidebar / Header, Main Section, and Footer with the prebuilt responsive capabilities as shown in the below screenshot. To get the screen template, go to New Screen, select the required screen, and add it to the canvas.

Build Responsive Canvas Apps

For instance, I have selected the Sidebar screen, it will automatically add multiple containers on the canvas. I have designed my app by adding the Account entity as a data source. When we select any container, it opens the Properties window where we get the options to properly align the controls.

Build Responsive Canvas Apps

So whenever we resize the browser, the app automatically gets aligned according to the size. See the below screenshot for reference:

Build Responsive Canvas Apps

Conclusion

Using these new horizontal and vertical containers in the Canvas apps layout, users can create responsive apps to ensure a great user experience.

RBM

Please visit the Source and support them

The post How to Build Responsive Canvas Apps appeared first on Microsoft Dynamics 365 Blog.

]]>
4286
Execute Microsoft Power Automate from Ribbon using JavaScript – On demand Power automate flow using Javascript – in UCI – Replace RibbonAction.js https://microsoftdynamics.in/2020/07/11/execute-microsoft-power-automate-from-ribbon-using-javascript-on-demand-power-automate-flow-using-javascript-in-uci-replace-ribbonaction-js/ Fri, 10 Jul 2020 21:32:17 +0000 http://microsoftdynamics.in/?p=3896 how to Execute PowerAutomate on click of a button on the contact record

Below is Demonstrated in below part

Create Power automate Flow to receive HTTPS Request from Javascript and send Email 
Register Javascript
Creating a Ribbon Button on Contact Entity and add javascript action to the button Command and pass PrimaryControl

The post Execute Microsoft Power Automate from Ribbon using JavaScript – On demand Power automate flow using Javascript – in UCI – Replace RibbonAction.js appeared first on Microsoft Dynamics 365 Blog.

]]>

Recently we needed to trigger Power Automate flow from Javascript later after reading my friend's Blog (Ajit Patra Link below) we decided to have a Button which will execute power automate flow using JavaScript.

It was presented as On-demand Power Automate flow to System user

Please go through Referred Ajit’s Blog  for more detail, where he explained how to Execute PowerAutomate on click of a button on the Lead record

Below is Demonstrated in below part

  1. Create Power automate Flow to receive HTTPS Request from Javascript and send Email
  2. Register Javascript
  3. Creating a Ribbon Button on Contact Entity and add javascript action to the button Command and pass PrimaryControl
https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/07/Execute-Microsoft-Power-Automate-from-Ribbon-using-JavaScript-–-On-demand-Power-automate-flow-using-Javascript-–-in-UCI-–-Replace-RibbonAction-js1.jpg?fit=2072%2C1564&ssl=1

Step 1 Create Power automate Flow to receive HTTPS Request from Javascript and send Email

We will create Power automate flow with the trigger “When an HTTP request is received” this will provide us an URL which we will use in our js for execution.

Below are the steps Performed

  1. Create An Power Automate flow, with the trigger ” When an HTTP request is received” 

  2. Use Sample payload to generate the schema , this Schema will be used as Parameter when executing Power automate

  3. Schema generated are available in Actions to be used as dynamic Values

  4.  Now copy the Http Post URL from HTTP action, Also Url will only be available once power automate is saved

Step 2 Register Javascript to Execute Https Request from Microsoft dynamics 365

We will create a simple JS web resource and will use below Javascript Provided by Ajit on his blog: Click Here 

  1. Create New Webreource and use blow Js Code
    function executeRequest(executionContext) {   
    var formContext = executionContext.getFormContext();
        var flowUrl = "Http Post URL";
        var input = JSON.stringify({
            "contactid": formContext .data.entity.getId().replace("{", "").replace("}", "")
        });
        var req = new XMLHttpRequest();
        req.open("POST", flowUrl, true);
        req.setRequestHeader('Content-Type', 'application/json');
        req.send(input);
    }
  2. Save the javascript and add it under the entity Contact

Step 3 Creating a Ribbon Button on Contact Entity and add javascript action to the button Command

  1. Create a new Solution and add the entity where the button needs to be added “testcontact”
  2. Now open the ribbon workbench, If ribbon workbench is not installed, Install Ribbon Workbench from here: Click Here 
  3. Once successfully imported, Open the ribbon workbench and select the Solution created in 1st step

  4. Once loaded we will find 3 Ribbon HOME, SUBGRID, and FORM

  5. Now Drag and drop the button to FORM Ribbon

  6. Give Label, Icon, etc. NOTE IN UCI SVG FORMAT IS SUPPORTED
  7. Now Click on Add new command, Rename it and Click on ADD ACTION

  8. Now search Javascript registered in step 2 and mention function name

    function executeRequest(executionContext) {   
    var formContext = executionContext.getFormContext();
        var flowUrl = "Http Post URL";
    ---------------------------------------------
    ---------------------------
    --------------------------------------------
  9. Most important is PrimaryControl should be passed in Parameter

Thanks

The post Execute Microsoft Power Automate from Ribbon using JavaScript – On demand Power automate flow using Javascript – in UCI – Replace RibbonAction.js appeared first on Microsoft Dynamics 365 Blog.

]]>
3896