Power automate flow tutorial Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/tag/power-automate-flow-tutorial/ Microsoft Dynamics CRM . Microsoft Power Platform Wed, 26 Jun 2024 10:26:29 +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 Power automate flow tutorial Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/tag/power-automate-flow-tutorial/ 32 32 176351444 Convert speech to text using Azure Speech service in Power Automate Flow http://microsoftdynamics.in/2024/06/26/convert-speech-to-text-using-azure-speech-service-in-power-automate-flow/ http://microsoftdynamics.in/2024/06/26/convert-speech-to-text-using-azure-speech-service-in-power-automate-flow/#respond Wed, 26 Jun 2024 10:26:29 +0000 https://www.inogic.com/blog/?p=38475 Azure provides Speech Services that let developers add advanced speech features to achieve complex functionality, including Speech-to-Text. With Azure Speech Services, we can convert speech to text.  In this blog post, let us check how the conversion from speech to text using Azure Speech Service in a Power Automate flow is done. The following steps...

The post Convert speech to text using Azure Speech service in Power Automate Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
Convert speech to text using Azure Speech service

Azure provides Speech Services that let developers add advanced speech features to achieve complex functionality, including Speech-to-Text. With Azure Speech Services, we can convert speech to text.

 In this blog post, let us check how the conversion from speech to text using Azure Speech Service in a Power Automate flow is done. The following steps can help achieve this requirement.

Recently, we got a requirement to transcribe audio attachments when an email is received with attachments in the shared mailbox and send back transcribed text.

Step 1: Create an ‘Automated’ flow

Create an ‘Automated’ flow using the trigger “When a new email arrives in a shared mailbox (V2)”

Convert speech to text using Azure Speech service

Convert speech to text using Azure Speech service

Step 2: Initialize the String variable

Add the ‘Initialize variable’ action to store the transcribed text of the audio attachment for further use.

Convert speech to text using Azure Speech service

Step 3: Initialize the Object variable

Add the ‘Initialize variable’ action to store the content of the audio attachment for further use.

Convert speech to text using Azure Speech service

Step 4: Get Attachments

Now, proceed to get the attached attachments of the received email. Utilize an ‘Apply to Each’ action to iterate through each attachment of an email and within that add a ‘Get Attachments (V2)’ action to get the current attachment of an email.

Expressions from the above image:

  • triggerOutputs()?[‘body/attachments’]
  • triggerOutputs()?[‘body/id’]
  • items(‘Apply_to_each_Attachment ‘)?[ ‘id’]

Convert speech to text using Azure Speech service

Step 5: Validate the content type of the audio attachment

Add the ‘Condition’ action to validate that the content type of the audio attachment must be in WAV format. Inside this set the value of the ‘Body Content’ variable using the content type and content of the current attachment audio file.

Convert speech to text using Azure Speech service

Expressions from the above image:

  • outputs(‘Get_Attachment_(V2)’)?[‘body/contentType’]
  • outputs(‘Get_Attachment_(V2)’)?[‘body/contentBytes’]

Step 6: Convert Speech-To-Text

Add ‘HTTP’ action and do the following configurations,

  • Method: Post
  • URL: https://eastus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/ v1?language=en-US

Note: Make sure to use your region code at the highlighted in the URL.

  • Headers:
    • Accept: application/json;text/xml
    • Content-Type: audio/wav; codecs=audio/pcm; samplerate=16000;
    • Ocp-Apim-Subscription-Key: Azure API Key
    • Host: eastus.stt.speech.microsoft.com
    • Transfer-Encoding: Chunked
    • Expect: 100-continue
    • Body: ‘Body Content’ variable

Convert speech to text using Azure Speech service

Step 7: Get the text of the audio attachment

Add a ‘Parse JSON’ action to get the text of the audio attachment.

Schema:

 { "type": "object", "properties": { "type": { "type": "string" }, "properties": { "type": "object", "properties": { "RecognitionStatus": { "type": "object", "properties": { "type": { "type": "string" } } }, "Offset": { "type": "object", "properties": { "type": { "type": "string" } } }, "Duration": { "type": "object", "properties": { "type": { "type": "string" } } }, "DisplayText": { "type": "object", "properties": { "type": { "type": "string" } } } } } } } 

Convert speech to text using Azure Speech service

Convert speech to text using Azure Speech service

Expressions from the above image:

  • body(‘HTTP_Azure_SpeechToText’)

Convert speech to text using Azure Speech service

Step 8: Append audio text in the variable

Add the ‘Append to string variable’ step and append the audio file text along with the file name.

Convert speech to text using Azure Speech service

Convert speech to text using Azure Speech service

We can use the above output for further use.

Conclusion:

By following these steps, you can effectively convert speech to text using Azure Speech Service in a Power Automate flow.

Click2Export

The post Convert speech to text using Azure Speech service in Power Automate Flow first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Convert speech to text using Azure Speech service in Power Automate Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
http://microsoftdynamics.in/2024/06/26/convert-speech-to-text-using-azure-speech-service-in-power-automate-flow/feed/ 0 4890
Exploring Access Management using Power Automate Flows in Dynamics 365 http://microsoftdynamics.in/2024/06/19/exploring-access-management-using-power-automate-flows-in-dynamics-365/ http://microsoftdynamics.in/2024/06/19/exploring-access-management-using-power-automate-flows-in-dynamics-365/#respond Wed, 19 Jun 2024 08:59:36 +0000 https://www.inogic.com/blog/?p=38419 In Dynamics, managing access to sensitive data is handled through security measures such as role-based permissions. Security roles and access management play a significant role in ensuring that the right individuals have access to the appropriate information. To grant access to particular records, users with Share permissions typically navigate to the respective record and click...

The post Exploring Access Management using Power Automate Flows in Dynamics 365 appeared first on Microsoft Dynamics 365 Blog.

]]>
Access Management using Power Automate Flows in dynamics 365

In Dynamics, managing access to sensitive data is handled through security measures such as role-based permissions. Security roles and access management play a significant role in ensuring that the right individuals have access to the appropriate information. To grant access to particular records, users with Share permissions typically navigate to the respective record and click on the “Share” button as shown below.

Access Management using Power Automate Flows

A common scenario arises when a sales manager needs to grant specific record access to a salesperson who doesn’t have the necessary permissions. The changes made by the sales manager may leave the salesperson unaware of their newly granted access, potentially leading to a loss in productivity. To resolve this issue, we can use access triggers introduced in Power Automate. These triggers activate whenever there is a change in user access for a particular record.

To improve this process, we can automate it by sending access notifications through email messages. By setting up a Power Automate flow, we can establish a notification system that triggers whenever access is granted, modified, or revoked for a particular user regarding specific records.

In this blog, we will utilize the example of a sales manager granting/modifying/revoking the permission of a salesperson in a lead record. To achieve this, we will need to create three different Power Automate flows, each of which is explained below.

1. Notify the user when Access is Granted for Lead records:

The GrantAccess action is triggered whenever full access, including Read, Write, Append, Append To, Delete, Share, and Assign permissions, is granted to the user for a specific record.

Access Management using Power Automate Flows

Let’s see how we can create a Power Automate flow for that:

Step 1: Create a Power Automate flow and select the trigger point as “When an action is performed”. Select the Catalog and Category as All, and Table as Lead. Select the Action name as GrantAccess.

Access Management using Power Automate Flows

Initialize the AccessMask and leadID Variable by clicking on add action and searching for initialize variable. Set the value for each variable as shown below:

Access Management using Power Automate Flows

  • AccessMask = triggerOutputs()?[‘body/InputParameters/PrincipalAccess/AccessMask’]
  • LeadID = triggerOutputs()?[‘body/InputParameters/Target/Id’]

Access Management using Power Automate Flows

Step 2: Validate the above variable values and retrieve Lead, Access Modified User, and Target User Information by using the Get a Row By ID action in Microsoft Dataverse connector as shown below:

Access Management using Power Automate Flows

  • Lead = variables(‘leadID’)
  • Access Modified User = triggerOutputs()?[‘body/InputParameters/PrincipalAccess/Principal/Id’]
  • Target User Information = triggerOutputs()?[‘body/RunAsSystemUserId’]

Access Management using Power Automate Flows

Step 3: As we have retrieved all the necessary details, we can now send an email to the user informing them that they have full access to the record, as shown below. To send the email, we are using the Outlook connector. Essentially press on “Include an activity” and look for “Send an e-mail,” as illustrated underneath.

Access Management using Power Automate Flows

Now, enter the To as the primary email address of the target user and the Subject and Body as shown below.

Access Management using Power Automate Flows

2. Notify the user when Access is Modified for Lead records:

This flow triggers whenever specific access i.e. Read, Write, etc. is granted or revoked for a particular user under specific records.

Access Management using Power Automate Flows

When we look at the JSON output of the trigger action from the power automate, we can see the AccessMask in JSON data, which is the addition of all access values which has been given to the user as shown below.

Access Management using Power Automate Flows

Following are the access values for all permissions:

  • Read: 1
  • Write: 2
  • Append: 4
  • Append To: 16
  • Delete: 65536
  • Share: 262144
  • Assign: 524288

Let’s say if we give a user Read and Write access, the AccessMask value will be 3. To check if the user has any specific permissions, we can use a basic calculation. First, divide the AccessMask value by the permission value (either Read or Write shown above). At that point, apply the modulo operation by 2 (which is nothing but the leftover portion returned after isolating by 2). If the remainder is 1 or greater than 1, the permission is granted. If the remainder is 0, the permission is not granted.

Imagine you have a user with Read and Write access, you would get the Access Mask as 3. Here’s how you can identify if specific permissions (Read or Write) are granted to the user.

  1. Access Mask Value: 3 (this means both Read and Write permissions are granted)
  2. Permission Values:
    • Read: 1
    • Write: 2

To check if each permission is granted, follow these steps:

Step-by-Step Calculation

For Read Permission:

1. Divide the Access Mask Value by the Read Permission Value:

  • 3÷1=3

2. Apply the Modulo Operation (remainder when divided by 2):

  • 3 modulo 2=1

3. Interpret the Result:

  • As the result is 1, the Read permission will be granted.

For Write Permission:

1. Divide the Access Mask Value by the Write Permission Value:

  • 3÷2=1.5

2. Apply the Modulo Operation (remainder when divided by 2):

  • 5 modulo 2=1.5

3. Interpret the Result:

  • Since the result is greater than 1, the Write permission is granted.

So, in this case, both Read and Write permissions are granted to the user based on the calculated values. This process helps us determine whether specific access permissions are granted or not for a given Access Mask value. Let’s implement this in the Power Automate and see how we can check if the permission is granted or not.

Step 1: The triggered step and variable declaration will be the same as we have used in Step 1 of GrantAccess flow; the only change is that the action name will be ModifyAccess.

Step 2: Initialize boolean variables for all access permissions and set the respective expressions as shown below:

  • Read Permission Check Equation:

IsReadPermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 1), 2), 1), true, false)

  • Write Permission Check Equation:

IsWritePermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 2), 2), 1), true, false)

  • Append Permission Check Equation:

IsAppendPermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 4), 2), 1), true, false)

  • Append To Permission Check Equation:

IsAppendToPermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 16), 2), 1), true, false)

  • Delete Permission Check Equation:

IsDeletePermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 65536), 2), 1), true, false)

  • Share Permission Check Equation:

IsSharePermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 262144), 2), 1), true, false)

  • Assign Permission Check Equation:

IsAssignPermissionGranted = if(equals(mod(div(variables(‘AccessMask’), 524288), 2), 1), true, false)

Access Management using Power Automate Flows

Step 3: Now we have all permission values as Boolean. We can check if the value is true, and then the access is granted; otherwise, the access is revoked as shown below:

  • Read: @{if(variables(‘IsReadPermissionGranted’), ‘Granted’,’ Revoked’)}
  • Write: @{if(variables(‘IsWritePermissionGranted’), ‘Granted’,’ Revoked’)}
  • Append: @{if(variables(‘IsAppendPermissionGranted’), ‘Granted’,’ Revoked’)}
  • Append To: @{if(variables(‘IsAppendToPermissionGranted’), ‘Granted’,’ Revoked’)}
  • Delete: @{if(variables(‘IsDeletePermissionGranted’), ‘Granted’,’ Revoked’)}
  • Share: @{if(variables(‘IsSharePermissionGranted’), ‘Granted’,’ Revoked’)}
  • Assign: @{if(variables(‘IsAssignPermissionGranted’), ‘Granted’,’ Revoked’)}

Access Management using Power Automate Flows

3. Notify the user when Access is Revoked for Lead records:

This flow triggers whenever all access of the user has been removed from the specific record.

Access Management using Power Automate Flows

The flow is almost similar to the Grant Access flow, apart from some modifications mentioned below:

  1. The Action name would be RevokeAccess
  2. Retrieve the Target user record by providing the Table name as “User” and Row Id from Trigger Outputs i.e. “triggerOutputs()? [‘body/InputParameters/Revokee/Id’” as shown below
  3. The email needs to be modified as shown below

Access Management using Power Automate Flows

Conclusion:

By following the steps for creating Power Automate flows to notify users about access changes, organizations can not only improve productivity but also strengthen security measures by maintaining clear visibility and control over data access.

The post Exploring Access Management using Power Automate Flows in Dynamics 365 first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Exploring Access Management using Power Automate Flows in Dynamics 365 appeared first on Microsoft Dynamics 365 Blog.

]]>
http://microsoftdynamics.in/2024/06/19/exploring-access-management-using-power-automate-flows-in-dynamics-365/feed/ 0 4888
Automate Receipt Data Extraction and Entry into Excel with Power Automate AI Model http://microsoftdynamics.in/2024/06/13/automate-receipt-data-extraction-and-entry-into-excel-with-power-automate-ai-model/ Thu, 13 Jun 2024 12:13:25 +0000 https://www.inogic.com/blog/?p=38373 Receipt processing is a prebuilt artificial intelligence model available in Power Automate. It’s designed to analyze receipts using cutting-edge optical character recognition (OCR) technology. This model can understand both printed and handwritten text on receipts. Once it reads a receipt, it extracts important information such as the store’s name and address, the transaction’s date and...

The post Automate Receipt Data Extraction and Entry into Excel with Power Automate AI Model appeared first on Microsoft Dynamics 365 Blog.

]]>
Power Automate's AI Model

Receipt processing is a prebuilt artificial intelligence model available in Power Automate. It’s designed to analyze receipts using cutting-edge optical character recognition (OCR) technology. This model can understand both printed and handwritten text on receipts. Once it reads a receipt, it extracts important information such as the store’s name and address, the transaction’s date and time, and a detailed list of items purchased. For each item, it identifies the name, price, quantity, and total cost. Additionally, it calculates the subtotal (the total before tax), the tax amount, any tip included, and the final total spent. This helps streamline tasks like expense tracking and management.

Let’s delve deeper into this practical example for a better understanding:

At a local general store, the owners use Dynamics 365 CRM to keep customer information. However, keeping track of customers’ purchases and calculating daily profits has been difficult. They used to manually enter each purchase into a record, export it to Excel, and then figure out the daily profit. This process took a lot of time and often had mistakes.

To make things easier, they decided to use the receipt processing feature in Power Automate. Now, when a customer buys something, they just upload the receipt into the system. The receipt processing model automatically extracts important details like items bought, their prices, and the total amount spent. This data is then automatically entered into an Excel spreadsheet.

Implementing the described scenario using Power Automate

A custom entity named “Customers” has been established, containing fields for customer details such as name, phone number, and address. Additionally, a “Receipt” field has been incorporated for uploading receipt images or files.

Power Automate's AI Model

Currently, our Power Automate flow is triggered by a modification of a row, as the receipt upload in the form can only occur after the record is created. We’ve specified the customer’s table name in the parameters.

Power Automate's AI Model

After retrieving the record, we need to download the associated file. To accomplish this, we will add a “Download a file or an image” action immediately after the trigger action. We’ll pass the extracted record ID to this action and specify “receipt” as the column name from which the file will be downloaded.

Power Automate's AI Model

After getting the file, we’ll use a tool to extract information from the receipts. If the document is big and has just one receipt, we’ll tell the tool which page the receipt is on. This enhances cost-effectiveness and improves operational efficiency.

Note: Suppose there are receipts on different pages: one on page 2 and another spanning pages 3 and 4. If you specify ‘2’, the tool will only gather information from the first receipt. Choosing ‘3-4’ means it will only extract info from the first page of the second receipt. If you choose ‘2-4’, it will collect details solely from the first receipt, ignoring the second one.

Power Automate's AI Model

To enter the extracted information into an Excel sheet, we’ll link the output parameters to the columns of our created table in Excel Online. The output parameters from the Receipt extraction model include the purchased item name, quantity, price, merchant’s name, address, total amount, subtotal, tip, tax, and more. We’ll organize this data in the Excel sheet according to our table columns.

Power Automate's AI Model

Now that our flow is set up, we’ll test it by uploading the following receipt in the customer’s entity form.

Power Automate's AI Model

The flow was activated when a modification was made to a customer entity’s record. The information from the receipt image was successfully extracted and entered into the system according to the flow’s instructions. You can now compare the values of those entries with the details from the receipt image provided above.

Power Automate's AI Model

Conclusion

Our flow successfully automated the process of extracting information from a receipt uploaded to a customer entity’s record. By triggering the flow upon modification of the record, we ensured that the receipt details were accurately captured and entered into the system. This streamlined the data entry process and provided a reliable way to compare the entered values with the original receipt image. Overall, the flow showcased the efficiency and precision of automating repetitive tasks with Power Automate.

Empower Your Dynamics 365 CRM with Our Next-Gen AI Expertise!

Step into the future of app development with our Copilot-enabled Power Platform solutions, Azure OpenAI Sales Companions, and Copilot Studio Developments. Contact crm@inogic.com to unlock business success with AI integration.

The post Automate Receipt Data Extraction and Entry into Excel with Power Automate AI Model first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Automate Receipt Data Extraction and Entry into Excel with Power Automate AI Model appeared first on Microsoft Dynamics 365 Blog.

]]>
4887
List solution details and their components using Power Automate Flow http://microsoftdynamics.in/2024/06/05/list-solution-details-and-their-components-using-power-automate-flow/ Wed, 05 Jun 2024 10:50:21 +0000 https://www.inogic.com/blog/?p=38322 As Microsoft is providing us more flexibility with Power Automate (MS Flow), now we can retrieve List of solution details and their components directly within Power Automate flows. Recently, we got a requirement to retrieve the list of solutions and their components from specific environments and store this information in an Excel file on SharePoint....

The post List solution details and their components using Power Automate Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
List solution details and their components

As Microsoft is providing us more flexibility with Power Automate (MS Flow), now we can retrieve List of solution details and their components directly within Power Automate flows.

Recently, we got a requirement to retrieve the list of solutions and their components from specific environments and store this information in an Excel file on SharePoint.

We can achieve this using Solution and Solution Components entity records in Dynamics CRM.

Below are the steps to achieve this requirement.

Step 1: Initialize the Array variable

This array variable should include the details of the solution component types you want to retrieve from the solution, as shown in the screenshot below.

List solution details and their components

The above array contains the following details of the solution component types:

  • ComponentType – The type value of the component from the documentation.
  • EntityName – The logical name of the component type.
  • FilterRowName – The field name to filter the component type.
  • SelectColumn – The field name to filter the component type.

You can find all solution component types information in Microsoft Documentation

Step 2: Retrieve solutions

Add the ‘List rows from selected environment’ step to retrieve the solutions from the specific environment. Use a filter query to retrieve the visible solutions and exclude the default solution.

List solution details and their components

Step 3: Retrieve Solution Components

Now, proceed to retrieve the solution component for the previously obtained solution. Utilize an ‘Apply to Each’ step to iterate through each solution, and within that, add a ‘List rows’ action to retrieve the solution component using the filter rows.

List solution details and their components

Step 4: Filter Array step to check the Component Type

For each solution component, implement an ‘Apply to Each’ loop. Inside this loop, use a Filter Array step to check that the Component Type of the current solution component matches the type specified in the array variable we set up earlier.

List solution details and their components

Expressions from the above image:

  • variables(‘SolutionCompentSummary’)
  • @item()[‘ComponentType’]
  • items(‘Apply_to_each_Solution_Components’)?[‘componenttype’]

Step 5: Retrieve Solution Components Summary

Add the ‘List rows’ step to retrieve the solution component if the Component Type matches and add a row into the Excel table.

List solution details and their components

Expressions from the above image:

  • length(body(‘Filter_Solution_Component_Summaries’))
  • body(‘Filter_Solution_Component_Summaries’)[0][‘EntityName’]
  • body(‘Filter_Solution_Component_Summaries’)[0][‘FilterRowName’]

List solution details and their components

Expressions from the above image:

  • items(‘Apply_to_each_Solutions’)?[‘uniquename’]
  • items(‘Apply_to_each_Solutions’)?[‘createdon@OData.Community.Display.V1.FormattedValue’]
  • items(‘Apply_to_each_Solutions’)?[‘version’]
  • items(‘Apply_to_each_Solutions’)?[‘ismanaged@OData.Community.Display.V1.FormattedValue’]}
  • outputs(‘List_of_Solution_Component_Summary’)?[‘body/value’][0]?[body(‘Filter_Solution_Component_Summaries’)[0][‘SelectColumn’]]
  • concat(toUpper(take(replace(string(outputs(‘List_of_Solution_Component_Summary’)?[‘body/value’][0]?[‘@odata.type’]), ‘#Microsoft.Dynamics.CRM.’, ”), 1)), toLower(skip(replace(string(outputs(‘List_of_Solution_Component_Summary’)?[‘body/value’][0]?[‘@odata.type’]), ‘#Microsoft.Dynamics.CRM.’, ”), 1)))

List solution details and their components

Conclusion:

By following these steps, you can retrieve Solutions and their component details using Power Automate flow.

Outsource Development Made Easy for Dynamics 365 CRM and Power Platform!

From customizing Microsoft Dynamics 365 to developing Copilot-enabled Power Platform Apps, our outsourced development services ensure top-notch solutions tailored to your needs. Let our experts handle the technicalities while you focus on your core business. Email us at crm@inogic.com to get started today.

The post List solution details and their components using Power Automate Flow first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post List solution details and their components using Power Automate Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
4880
Streamlined Text and Document Categorization with Entity Extraction in Power Automate http://microsoftdynamics.in/2024/05/21/streamlined-text-and-document-categorization-with-entity-extraction-in-power-automate/ Tue, 21 May 2024 10:34:42 +0000 https://www.inogic.com/blog/?p=38226 The tools of AI Builder help you find important information in text. They organize this info into categories that make sense for your business needs. There are two types: prebuilt and custom. Prebuilt ones are ready to use without any extra work. They’re great for lots of common tasks. Custom ones need you to train...

The post Streamlined Text and Document Categorization with Entity Extraction in Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
Streamlined Text and Document Categorization in Power Automate

The tools of AI Builder help you find important information in text. They organize this info into categories that make sense for your business needs.

There are two types: prebuilt and custom. Prebuilt ones are ready to use without any extra work. They’re great for lots of common tasks. Custom ones need you to train them with your data and settings. This way, you can make a model that’s perfect for what you need.

Practical Example: Making Appointments Easier with Automated Data Handling

Imagine running a small doctor’s office. Patients fill out a form on your website with their name, phone number, city, email, and when they want an appointment. With AI Builder in Power Automate, the system automatically collects and saves this info from the forms present on the website.

As patients send their forms, Power Automate quickly grabs the important details and stores them in a file or your CRM system. Later, when it’s time to schedule appointments, you can easily find the patient’s info, contact them, and sort out their appointments.”

Extract Data from Text and Input into Excel Spreadsheet

We’ll create a manual-triggered flow in Power Automate to demonstrate using AI Builder’s entity extraction model. This flow will include a Text Input parameter.

Streamlined Text and Document Categorization in Power Automate

Now, next to the initial triggered action, add an AI Builder action. From the available AI Builder actions, select “Extract entities from text with the standard model.”

Streamlined Text and Document Categorization in Power Automate

This action requires two parameters: the first one is the language, and the second one is the text. You can pass a file as well from the trigger action, but documents cannot exceed more than 5,000 characters.

Streamlined Text and Document Categorization in Power Automate

As we proceed to input data into the Excel file, a table has been prepared with two columns: one for the type of entity and the other for its respective value. This model will provide outputs such as entity value, entity type (including person’s name, phone number, email, city, date, etc.), confidence score, character length, and starting location.

Streamlined Text and Document Categorization in Power Automate

Now that the flow is set up, we can proceed with testing it. To do this, I’m passing the content of an email as input to the manually triggered action. In the email content, you’ll find information such as the patient’s name, phone number, address, and preferred date, as shown in the screenshot below.

Streamlined Text and Document Categorization in Power Automate

After executing this flow, you’ll find the results in the Excel file. Unlike the key phrase extraction model, this model is more advanced as it allows you to categorize the detected text. In contrast, key phrase extraction simply extracts key phrases from the text or file. For further understanding of the key phrase extraction model and its application, you can refer to the blog titled “Understanding key phrase extraction in power automate for text analysis”.

Streamlined Text and Document Categorization in Power Automate

Conclusion

We’ve successfully demonstrated the implementation of a Power Automate flow utilizing an entity extraction model. Through a practical example of appointment scheduling at a medical clinic, we showcased how this technology efficiently extracts and organizes relevant data from text inputs. By automating the extraction process, businesses can streamline their workflows, enhance data accuracy, and improve overall efficiency. With the ability to categorize extracted information, AI Builder’s entity extraction model offers a powerful solution for various text analysis tasks.

The post Streamlined Text and Document Categorization with Entity Extraction in Power Automate first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Streamlined Text and Document Categorization with Entity Extraction in Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
4878
Understanding Key Phrase Extraction in Power Automate for Text Analysis http://microsoftdynamics.in/2024/04/25/understanding-key-phrase-extraction-in-power-automate-for-text-analysis/ Thu, 25 Apr 2024 09:34:49 +0000 https://www.inogic.com/blog/?p=37953 The key phrase extraction model identifies the main topics in a text document. For example, if you have a sentence like “The movie was entertaining and the acting was impressive!”, the model would extract key phrases such as “movie”, “entertaining”, and “acting”. This model helps to identify and list important themes or subjects from unstructured...

The post Understanding Key Phrase Extraction in Power Automate for Text Analysis appeared first on Microsoft Dynamics 365 Blog.

]]>
The key phrase extraction model identifies the main topics in a text document. For example, if you have a sentence like “The movie was entertaining and the acting was impressive!”, the model would extract key phrases such as “movie”, “entertaining”, and “acting”. This model helps to identify and list important themes or subjects from unstructured text.

To utilize this prebuilt model within Power Automate, refer to the documentation titled “Using the Key Phrase Extraction Prebuilt Model in Power Automate” for detailed instructions and guidance on implementation.

Note: The format for data input is limited to a maximum of 5,120 characters per document when using the key phrase extraction prebuilt model.

Use Case: Extracting Key Phrases from Email for Meeting Preparation

Scenario:

You have sent an email to a client detailing your product features that can fulfill their requirements. Now, you want to automatically extract key phrases from that email and store them in a spreadsheet to prepare for an upcoming meeting or call with the client.

Solution Overview:

When the client responds to your email or when you manually trigger the process, Power Automate will retrieve the email content, extract key phrases using AI Builder’s Key Phrase Extraction model, and then update a spreadsheet with the extracted key phrases for easy reference during the scheduled meeting or call.

Let’s explore how we can implement this functionality using Power Automate.

To trigger the Power Automate flow when a new email message record is created in Microsoft Dynamics 365 CRM, set the change type to ‘added’, the table name to ’email message’, and configure the scope at the ‘organization’ level based on your specific needs.

Key Phrase Extraction in Power Automate for Text Analysis

Next, we’ll incorporate the Key Phrase Extraction prebuilt model in our flow to extract key phrases from the email. We’ll map the email message description to the text field of the Key Phrase model for analysis.

Key Phrase Extraction in Power Automate for Text Analysis

To store the extracted key phrases along with email details in an Excel sheet using the “Excel Online (Business)” connector, I’m creating a table with columns for Subject, Description, and Key Phrases.

Key Phrase Extraction in Power Automate for Text Analysis

Now that the table is set up, we’ll proceed to add it as the next action in our flow and map the fields accordingly to populate the Excel sheet with the email subject, description, and extracted key phrases.

Key Phrase Extraction in Power Automate for Text Analysis

Upon adding this action, Power Automate will automatically incorporate a “For Each” loop in the flow, which will iterate through each extracted key phrase from the email description. This loop ensures that the subsequent actions are applied to each key phrase individually. With this setup, our flow is now complete. Let’s save it and proceed to testing.

Key Phrase Extraction in Power Automate for Text Analysis

To test our flow, we’ve created an email activity record in Dynamics 365 CRM. Below is the record details and its description. This email contains points about the product features we plan to discuss with the client during an upcoming scheduled meeting, focusing on fulfilling the client’s requirements.

Key Phrase Extraction in Power Automate for Text Analysis

Once we create the email, it will trigger our flow to extract key phrases from its description and add them to our Excel table. This automated process helps organize and capture important topics discussed in the email for further analysis or action.

Key Phrase Extraction in Power Automate for Text Analysis

Conclusion

We’ve successfully implemented an automated workflow using Power Automate and Dynamics 365 CRM to extract key phrases from email descriptions and store them in an Excel table. This streamlined process allows us to efficiently capture and analyze important topics discussed in client communications, enabling better preparation and organization for client meetings and engagements.

Model Driven App

The post Understanding Key Phrase Extraction in Power Automate for Text Analysis first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Understanding Key Phrase Extraction in Power Automate for Text Analysis appeared first on Microsoft Dynamics 365 Blog.

]]>
4873
Utilize the Power of Prebuilt Business Card Reader Model in Microsoft Power Automate http://microsoftdynamics.in/2024/04/09/utilize-the-power-of-prebuilt-business-card-reader-model-in-microsoft-power-automate/ Tue, 09 Apr 2024 07:29:01 +0000 https://www.inogic.com/blog/?p=37774 AI Builder in Microsoft Power Automate makes tasks easier for everyone. It lets you use prebuilt AI models to understand forms, recognize things in pictures, sort out text, make guesses, and understand people’s feelings from what they write. It’s like having a smart assistant that does tough jobs for you. So, even if you’re not...

The post Utilize the Power of Prebuilt Business Card Reader Model in Microsoft Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
AI Builder in Microsoft Power Automate makes tasks easier for everyone. It lets you use prebuilt AI models to understand forms, recognize things in pictures, sort out text, make guesses, and understand people’s feelings from what they write. It’s like having a smart assistant that does tough jobs for you. So, even if you’re not a tech pro, you can still use AI to get your work done faster and simpler.

Utilize the prebuilt business card model to extract details from images of business cards. Upon detecting a business card in the image, the AI model automatically extracts key information, including the individual’s name, email, address, company, job title, and contact numbers. Once extracted, this data can be used efficiently for various purposes, streamlining processes and eliminating manual data entry tasks.

Note: Currently, the prebuilt business card reader supports extraction in English and Japanese languages exclusively.

Additionally, images must be in JPG, PNG, BMP, or PDF format. Furthermore, the size of the image file should not exceed 50 MB. By ensuring that your images meet these requirements, you can effectively utilize the business card model for accurate data extraction.

Using Business Cards to Extract Data

To create a flow that utilizes the business card reader with a basic example, we’ll set up a manual trigger and include an action to upload a sample card file. Then, we’ll check if it can successfully create a contact record in our Dynamics 365 CRM.

First, let’s set up the flow:

  1. Manual Trigger: Start by adding a trigger that is manually initiated. This will allow you to trigger the flow whenever you’re ready to upload the sample card file.
  2. Upload File: Add an action to upload the image file. You can use a suitable action depending on where your file is stored, such as “Get file content” if it’s stored in a cloud storage service like OneDrive or SharePoint.
  3. Business Card Reader: Next, add an action to use the business card reader model. Choose the appropriate action provided by AI Builder for extracting information from the uploaded image.
  4. Create a Record in Dynamics 365 CRM: Finally, add an action to create a contact record in your Dynamics 365 CRM. Map the extracted information from the business card reader action to the corresponding fields in the contact record.
  5. Save and Test: Once you’ve set up the flow, save it and give it a name. Then, manually trigger the flow and upload the sample card file. Check if the flow successfully extracts the information and creates a contact record in your Dynamics 365 CRM.

Business Card Reader Model in Microsoft Power Automate

To integrate the extraction of information from a business card into your flow, simply search for the “Extract information from business card” action in the actions list and add it after triggering your flow.

Business Card Reader Model in Microsoft Power Automate

By keeping the file type detection set to automatic, the action will efficiently process the uploaded card file. Ensure to specify the uploaded card file in the “Business card” field, typically sourced from the previous action where the file was uploaded.

Business Card Reader Model in Microsoft Power Automate

It’s advisable to implement validations before creating a record in your Dynamics 365 CRM, especially considering scenarios where the AI might not detect all the required data. In the screenshot provided, we will validate the last name data from the card, recognizing it as a mandatory field for creating a contact record. This precautionary step ensures that essential information is present before proceeding with record creation, reducing the risk of incomplete or inaccurate record creation in your Dynamics 365 CRM system.

Business Card Reader Model in Microsoft Power Automate

Next, connect all the field values you wish to fill after the AI model detects them. This includes name, contact details, email, job title, company name, and address details.

Business Card Reader Model in Microsoft Power Automate

Now that the flow is complete, we can test it by manually uploading an image file in the Card Input field, as shown in the below screenshot.

Business Card Reader Model in Microsoft Power Automate

Although it may take some time for the AI model to detect and extract data from the uploaded file, the process ultimately saves a significant amount of time compared to manual entry.

Business Card Reader Model in Microsoft Power Automate

Conclusion

We have successfully created a Microsoft Power Automate flow to extract information from a business card and generate a contact record from it. This efficient process not only saves time but also allows end-users to focus on more critical tasks. Importantly, creating this flow doesn’t require the user to be a technical expert, showcasing the accessibility and user-friendly nature of Power Automate. With this automated workflow, tedious manual data entry tasks are minimized, enabling users to allocate their time and resources more effectively.

Mailchimp integration with Microsoft Dynamics 365 CRM – Revamp sales and marketing strategies!

The post Utilize the Power of Prebuilt Business Card Reader Model in Microsoft Power Automate first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Utilize the Power of Prebuilt Business Card Reader Model in Microsoft Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
4871
How to configure a trigger to handle both GET and POST requests effectively using Power Automate http://microsoftdynamics.in/2024/02/23/how-to-configure-a-trigger-to-handle-both-get-and-post-requests-effectively-using-power-automate/ Fri, 23 Feb 2024 10:25:29 +0000 https://www.inogic.com/blog/?p=37452 I recently encountered a client requirement that necessitated handling both “GET” and “POST” HTTP requests. While Azure Function offers a straightforward solution for such scenarios, the concern was it should be handled within Dynamics CRM. Faced with these constraints, I explored alternatives that would allow us to meet the client’s needs within the preferred environment....

The post How to configure a trigger to handle both GET and POST requests effectively using Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
I recently encountered a client requirement that necessitated handling both “GET” and “POST” HTTP requests. While Azure Function offers a straightforward solution for such scenarios, the concern was it should be handled within Dynamics CRM. Faced with these constraints, I explored alternatives that would allow us to meet the client’s needs within the preferred environment. Accommodating both “GET” and “POST” methods posed a unique challenge for our project.

I needed one URL that would trigger on “GET” and “POST” methods. Only one time it will trigger the “GET” method to validate logic and after that, it will call for the “POST” method to process some response. Below is the approach that allowed us to fulfill the client’s requirements seamlessly.

1. Create a solution in https://make.powerapps.com/where you have to add your Power Automate (Ms Flow)

Power Automate

2. In the solution click on the “New” button & select Flow as shown in the below image. It will redirect you to the Power Automate (MS Flow) window as shown in the following image.

Power Automate

Power Automate

3. Now we have to Search for the “When an HTTP request is received” Trigger point in our newly created Flow & from the search result select “When an HTTP request is received” and select “Who can trigger the flow” from the dropdown as per your requirement configure “Who can trigger the flow” based on your needs. Set the method as “GET” and give your flow a name. Finally, click on “Save” to obtain the “HTTP POST URL”.

Power Automate

4. Once saved, you’ll receive an HTTP POST URL, as illustrated in the image below. Now I am using this URL as the endpoint. This ensures that whenever it is triggered, your flow will also be triggered, regardless of whether the request is a “GET” or “POST“.

Power Automate

5. Next, add the “Initialize Variable” action to create variables. It will store the data coming into the Body.

Power Automate

6. When the “GET” method is called then Body will be blank, we will get a result from query string parameters however in the “POST” method response will come in Body. So, to handle both scenarios I have added the condition to check If Data is null then it should move further and take query string parameters and return them in the response as well as update that Power Automate from the “GET” method to “POST” else it will direct return the response.

Power Automate

Power Automate

Power Automate

Whenever any Power Automate gets created those are stored in the “workflow” entity. So, I tried to find my Power Automate using ODATA and I got its ID, name, and other details. It stores all Power Automate steps in one field “clientdata” in JSON format. So, to update from “GET” to “POST” we need to follow the below steps.

Power Automate

Now in Power Automate, we specified the table (entity) name as “Processes” which is the display name of the “Workflow” entity, and entered the ID of our flow in the “Row ID” field. we also need to retrieve the method stored in the “clientdata” attribute column. Therefore, select “clientdata” in the “Select columns” option. Also, set the variable “RecordData” using the “Body” output of the “Get row by ID” action.

Power Automate

7. Following this, use the “Compose” action, where the input will be modified by substituting “GET” with “POST” in the aforementioned JSON.

Power Automate

8. The subsequent step involves parsing the JSON, which means converting the JSON string into an object format. It’s essential to input the correct schema, as illustrated in the image provided.

Power Automate

9. The final step involves updating the previously retrieved process record. Modify the “clientdata” column to reflect the updated “clientdata”, wherein the method has been changed to “POST“.

Power Automate

10. After the record is updated, the modified JSON will resemble the image below.

Power Automate

Conclusion

In conclusion, the method outlined above demonstrates how you can dynamically alter the flow’s method from “GET” to “POST”. This is particularly useful when there’s a requirement for your flow to be triggered once using the “GET” method and subsequently, for all future triggers, to operate using the “POST” method.

The post How to configure a trigger to handle both GET and POST requests effectively using Power Automate first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post How to configure a trigger to handle both GET and POST requests effectively using Power Automate appeared first on Microsoft Dynamics 365 Blog.

]]>
4856
How to invoke Low-code plug-ins using Power Automate Cloud Flow http://microsoftdynamics.in/2024/02/19/how-to-invoke-low-code-plug-ins-using-power-automate-cloud-flow/ Mon, 19 Feb 2024 09:27:41 +0000 https://www.inogic.com/blog/?p=37407 In the previous blog post, we talked about low-code plugins using the Dataverse Accelerator App where we created an instant plug-in to calculate Billing Details. In this blog, we will be integrating the same Instant Plug-in in the Microsoft PowerAutomate Flow. How to invoke Instant Plug-in in the Microsoft PowerAutomate Flow? 1. Log into your...

The post How to invoke Low-code plug-ins using Power Automate Cloud Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
In the previous blog post, we talked about low-code plugins using the Dataverse Accelerator App where we created an instant plug-in to calculate Billing Details. In this blog, we will be integrating the same Instant Plug-in in the Microsoft PowerAutomate Flow.

How to invoke Instant Plug-in in the Microsoft PowerAutomate Flow?

1. Log into your Power Apps Maker Portal > select the environment > from the left side panel > click on Flows > from the top menu > click on New Flow option > and then Select Instant cloud flow

Power Automate Cloud Flow

2. After clicking on Instant Cloud Flow, a pop window will occur. Referring to the below image, Provide a name for your flow and choose one of the actions from the dropdown to trigger the flow. Then click on the Create button.

Power Automate Cloud Flow

3. In a previous blog, we created a plug-in related to Billing Details that accepts three input parameters i.e. NoOFUsers means the count of Users, SubscriptionPrice relates to the cost of service provided to the User and Duration means how long the services are needed. Here, Click on ‘Manually trigger a flow ’ to add input parameters.

Power Automate Cloud Flow

4. Click on Next step and select Perform an unbound action from the action list it will redirect to you on Perform un unbound action card.

Power Automate Cloud Flow

5. Select the respective action from the Action Name dropdown and fill in the input parameters as per the selected action.

Power Automate Cloud Flow

6. After providing input parameters, you have to consume the action result. For this, the Compose and operation step assign the output parameter of action to the input field of the composing step as shown in the screenshot below:

Power Automate Cloud Flow

7. After making the above changes click on Save > Click on the Test button to run the created flow > Select Manually option and click on Test button > Fill input parameters and click on Run Flow it will run the resprective flow and give the exact output.

Power Automate Cloud Flow

8. Flow will run successfully. Check out the output below:

Power Automate Cloud Flow

Conclusion

Low code plugin we can use in a reusable manner. We can call or invoke plugins from Power Automate Flow in a default manner.

Microsoft Power Platform

The post How to invoke Low-code plug-ins using Power Automate Cloud Flow first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post How to invoke Low-code plug-ins using Power Automate Cloud Flow appeared first on Microsoft Dynamics 365 Blog.

]]>
4849
Building and Editing Power Automate Flows with Copilot’s Help http://microsoftdynamics.in/2024/02/06/building-and-editing-power-automate-flows-with-copilots-help/ Tue, 06 Feb 2024 11:39:47 +0000 https://www.inogic.com/blog/?p=37297 If you’ve already experienced creating a Power Page with Copilot, great! If not, click here to get started. This blog will now explore how Copilot collaborates with Power Automate and outline the necessary configurations or settings to enable Copilot in your environment. In our daily routines, automation has emerged as an essential component, offering time...

The post Building and Editing Power Automate Flows with Copilot’s Help appeared first on Microsoft Dynamics 365 Blog.

]]>
If you’ve already experienced creating a Power Page with Copilot, great! If not, click here to get started. This blog will now explore how Copilot collaborates with Power Automate and outline the necessary configurations or settings to enable Copilot in your environment.

In our daily routines, automation has emerged as an essential component, offering time savings and process optimization. Microsoft Power Automate stands out as a potent tool, democratizing automation for users of all levels. This blog delves into the utilization of Copilot, an integral feature of Power Automate, demonstrating how it facilitates the seamless creation of automation flows, especially for those who are new to the field.

Activate Copilot and Generative AI functionalities

To activate Copilot in your environment, navigate to the Power Platform administrator portal, access the designated environment, and within the Generative AI feature, enable the “Move data across the region” option. Save the changes to apply the configuration. Microsoft Power Platform and Microsoft Dynamics 365 offer Copilots and generative AI features that assist in building apps, flows, chatbots, data analysis, summarization, message responses, idea generation, and more.

Power Automate Flows with Copilot

Note: Regional Variations in Advanced Features and Data Movement

It’s important to note that these advanced features may not be universally accessible across all regions and languages. Depending on your environment’s hosting location, enabling data movement across regions becomes essential to leveraging these capabilities. In regions such as Australia, the United Kingdom, and the United States, no additional action is required, as data movement across regions is not applicable in these cases.

Power Automate Flows with Copilot

Begin Your Journey with Copilot in Power Automate Cloud Flows

To begin utilizing Copilot in Power Automate, initiate the process by selecting the ‘Describe to design it’ option.

Power Automate Flows with Copilot

Here, you can articulate the details of your desired flow within the provided prompt, and Copilot will subsequently generate a suggested flow based on your description.

Power Automate Flows with Copilot

After receiving the suggested AI-generated flow, take a moment to review it. If you find that it aligns with your requirements, proceed with the suggested flow. However, if you feel adjustments are needed, you have the option to either rephrase your description or provide specific instructions and try the process again.

Power Automate Flows with Copilot

The final step before creating a flow involves ensuring that all your data sources are connected. If you’re working with Outlook or Teams, you can establish the connection directly from this window if it’s not already set up. Once you’ve confirmed the connections, proceed by clicking the “Create Flow” button to move forward with the flow creation process.

Power Automate Flows with Copilot

Refine Your Flow with the Assistance of Your Copilot

After activating the “Move data across regions” option in the Power Platform Admin Center, you’ll observe the presence of the Copilot button in the newly created automated flow. It’s crucial to note that there may be invalid parameters within the flow post-creation, requiring your attention. Copilot will assist you in rectifying these issues, offering step-by-step guidance to ensure your flow is ready for testing or execution. Furthermore, you have the option to use Copilot for editing your parameter fields, as demonstrated in the screenshot below.

Power Automate Flows with Copilot

Power Automate Flows with Copilot

Save and Perform Testing with Copilot

Once you’ve successfully addressed any invalid parameters, the “Save the flow” button will become visible, positioned just above Copilot’s prompt. After saving the flow, you’ll then notice the appearance of the “Test this flow” button, allowing you to initiate testing and ensure the seamless functionality of your automated process.

Power Automate Flows with Copilot

Power Automate Flows with Copilot

Conclusion

In conclusion, with the dynamic duo of Microsoft Power Automate and Copilot, automation becomes accessible and efficient for users of all levels. From effortless flow creation to handling parameters, Copilot streamlines the process, making Power Automate a user-friendly powerhouse for enhanced productivity. Embrace the simplicity of automation and empower your workflows with this innovative pairing.

copilot

The post Building and Editing Power Automate Flows with Copilot’s Help first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

Please Follow the Source

The post Building and Editing Power Automate Flows with Copilot’s Help appeared first on Microsoft Dynamics 365 Blog.

]]>
4846