Crm Newshubb
Advertisement
  • Home
  • News
  • CRM Software & Tools
  • Contact us
No Result
View All Result
  • Home
  • News
  • CRM Software & Tools
  • Contact us
No Result
View All Result
Crm Newshubb
No Result
View All Result
Home CRM Software & Tools

Shortcut to building trigger conditions in Power Automate

admin by admin
December 30, 2022
in CRM Software & Tools


Background 

In a Power Automate (flow), we can limit when the flow is triggered using several different methods. This blog post will highlight two methods a maker can employ to limit flow runs using trigger conditions. Using trigger conditions allows a maker to create multiple conditions that must be met for a flow to be triggered. Please note that if a flow’s trigger conditions are NOT met, the flow will not be triggered, and no run history will be logged.  

Option 1 – Filter rows conditions on the trigger action:  

A maker can limit a flow’s triggering via the Filter Rows property under Advanced Options of the trigger step.

Here we use an oData query statement to control when the flow triggers. This option can be difficult to implement and usually only allows a single filter. Using an AND or OR operator to combine conditions will most likely not work. Therefore, let’s explore an alternative and easier method for combining multiple trigger conditions, described in Option 2 below.  

Option 2 – Set trigger conditions on the trigger action:  

A maker can limit a flow’s triggering via the settings of the trigger component. Please see the step-by-step instructions below.  

  1. Click on the plus sign under the trigger component and click Add an action to add a new step
  2. Type “filter array” in the search box and then select the action from the results
  3. Once the Filter array action is created, add your required trigger condition. Ignore the From field as we won’t be saving this step. We’ll only be using it to compose our filter criteria.  
  4. Click Edit in advanced mode and copy the text in the textbox
  5. Now that we have the correct syntax for our first filter, we need to paste it into the settings. To do that, click on the ellipsis in the upper right corner of the trigger component
  6. Click Add and paste the clipboard contents into the trigger condition field.  

If you have multiple filter conditions to add, you can click the +Add button and repeat steps 3-4 above to generate the properly formatted conditions. However, if you need to have OR logic, you need to put that in one line like this: @OR(test1,test2,test3). Note that we drop the leading @ of each string and put that at the beginning.  

For example, if we wanted to have our trigger filter if a task  

  • has a subject,  
  • and the due date is > today  
  • and the status is not canceled,  

our syntax would look like this (carriage returns added for readability):  

@or(@greaterOrEquals(triggerOutputs()?[‘body/scheduledend’], utcNow()), 

equals(triggerOutputs()?[‘body/subject’], null), 

not(equals(triggerOutputs()?[‘body/statecode’], 2))) 

Finally, once you have completed the setup of the trigger conditions you can delete the filter array option and complete any additional steps required for your flows use case.  



Source link

Previous Post

Vtiger CRM Blog » The Do’s and Don’ts in 2023.

Next Post

AI-based CRM – How does it help the Sales team? – CRM Software Blog

Next Post

AI-based CRM - How does it help the Sales team? - CRM Software Blog

Recommended

Successfully Work Across Countries, Languages, and Cultures using Maps integration within Microsoft Dynamics 365 CRM! – CRM Software Blog

September 8, 2022

How Can Dynamics 365 Reduce Business Costs?

December 1, 2022

3 Tips for Efficiently Managing Your Microsoft Power Platform

September 18, 2022

Vtiger CRM Blog » The Celebration and Significance of Dasara in India

October 5, 2022

Don't miss it

News

5 Features That Make Sugar Sell’s Forecasting Better

January 31, 2023
News

Vtiger CRM Blog » CRM Trends of 2023: Social CRM

January 31, 2023
CRM Software & Tools

Explore new markets with Census Data and Land Area Mapping with maps integration within Microsoft Dynamics 365 CRM – CRM Software Blog

January 30, 2023
CRM Software & Tools

Streamline Business Operations with Microsoft Dynamics 365 CRM and Power Platform Development Services by Inogic! – CRM Software Blog

January 29, 2023
CRM Software & Tools

4 Must Have Features On-field Sales Team Will Use Daily

January 28, 2023
CRM Software & Tools

Training Dynamics 365 Users is a Waste of Time – CRM Software Blog

January 27, 2023

crm-white

© 2022 CRM News Hubb All rights reserved.

Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Privacy Policy and Terms & Conditions.

Navigate Site

  • Home
  • News
  • CRM Software & Tools
  • Contact us

Newsletter Sign Up

No Result
View All Result
  • Home
  • News
  • CRM Software & Tools
  • Contact us

© 2022 CRM News Hubb All rights reserved.