cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
knguyen
Helper I
Helper I

Flow condition: when a checkbox is selected send an email

Hello,

 

I have a checkbox on Powerapps call "xxx Access" with value "checkbox1_10" and field name "xxx Access Disable" on my list.

 

I want to trigger an email using flow condition when the checkbox is checked on my powerapps form.  However, on flows it seem to be bypassing that condition. 

 

On my list, the field column does show "true" when the checkbox is selected. 

 

flow5.JPG

 

flow3.JPGflow4.JPG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @knguyen,

 

Could you please share a bit more about your PowerApps app?

Could you please share a screentshot of your flow's configuration?

Which data type is the "Fred Access Disabble" column that mentioned in your SharePoint list?

Further, do you want to fire the flow when a new item is created in your SharePoint list or just when the checkbox is checked on your PowerApps app?

 

I have created a SharePoint list on my side and the data structure of it as below:16.JPG

Note: The IsExpired column is Yes/No type column, the TaskName column is a Single line of text type column and the Executor column is a Person or Group type column.

 

If you want to fire the flow when a new item is created in your SharePoint list, I have made a test on my side and the flow works well. My flow's configuration as below:18.JPG

 

19.JPG

The flow works successfully as below:20.JPG

 

If you want to fire the flow just when the checkbox is checked on your PowerApps app, please use the PowerApps trigger as the trigger of your flow. I have made a test on my side and please take a try with the following workaround:21.JPGWithin Condition, click "Edit in advanced mode", type the folliowing formula:

 

@equals(triggerBody()['Condition_ObjectName'], 'true')

 

Note: Within Condition box, right input box set to Ask in PowerApps dynamic content of the trigger.

 

Within my PowerApps app, select the Edit Screen. Find the Checkbox field (The Yes/No type column in my SharePoitn list is decorated as a toggle control within Edit Screen of my PowerApps app):22.JPG

Select the Toggle control, then click "Unlock to change properties" in right panel. Select OnCheck property and then click Flows buuton within Action tab. Within Flows lists, choose your flow:23.JPG

Within OnCheck property, type the following formula:

 

'20180214_case5_2'.Run(DataCardValue12.Value)

 

24.JPG

 

When you check the Checkbox in your PowerApps app, the flow works successfully as below:25.JPG

 

More details about start a flow in an app, please check the following article:

Start a flow in an app

 

 

Best regards,

Kris

 

 

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @knguyen,

 

Could you please share a bit more about your PowerApps app?

Could you please share a screentshot of your flow's configuration?

Which data type is the "Fred Access Disabble" column that mentioned in your SharePoint list?

Further, do you want to fire the flow when a new item is created in your SharePoint list or just when the checkbox is checked on your PowerApps app?

 

I have created a SharePoint list on my side and the data structure of it as below:16.JPG

Note: The IsExpired column is Yes/No type column, the TaskName column is a Single line of text type column and the Executor column is a Person or Group type column.

 

If you want to fire the flow when a new item is created in your SharePoint list, I have made a test on my side and the flow works well. My flow's configuration as below:18.JPG

 

19.JPG

The flow works successfully as below:20.JPG

 

If you want to fire the flow just when the checkbox is checked on your PowerApps app, please use the PowerApps trigger as the trigger of your flow. I have made a test on my side and please take a try with the following workaround:21.JPGWithin Condition, click "Edit in advanced mode", type the folliowing formula:

 

@equals(triggerBody()['Condition_ObjectName'], 'true')

 

Note: Within Condition box, right input box set to Ask in PowerApps dynamic content of the trigger.

 

Within my PowerApps app, select the Edit Screen. Find the Checkbox field (The Yes/No type column in my SharePoitn list is decorated as a toggle control within Edit Screen of my PowerApps app):22.JPG

Select the Toggle control, then click "Unlock to change properties" in right panel. Select OnCheck property and then click Flows buuton within Action tab. Within Flows lists, choose your flow:23.JPG

Within OnCheck property, type the following formula:

 

'20180214_case5_2'.Run(DataCardValue12.Value)

 

24.JPG

 

When you check the Checkbox in your PowerApps app, the flow works successfully as below:25.JPG

 

More details about start a flow in an app, please check the following article:

Start a flow in an app

 

 

Best regards,

Kris

 

 

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-xida-msftI am trying to do this with an existing Sharepoint list, Triggered by recurrence and using Get Items.  It's supposed to send an email for every item that meets the condition, but it sends an email for every item, regardless of the condition.  I'd post a screenshot, but that's apparently not an option for my account.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,048)