cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
landonjochim
Resolver I
Resolver I

Trigger Conditions to start a flow when a 'Person or Group' field CONTAINS a name

Hello,

 

I want to trigger my flow using Trigger Conditions. I want the flow to only run when my custom Person column is filled out and contains information.

 

The flow is looking at a SharePoint list library. My custom column is a "Person or Group" column named: "AssignedTo"

 

When items are created in this list, the Assigned To column is <blank>. After the Assigned To column is filled out and saved, I want the flow to run.

 

I have tried many things, looking at length(), IsBlank(), equals(). But have yet to find anything that works. 

 

Remember I want to use the built in Trigger Conditions.

 

Thanks for any help!

landonjochim_0-1606172712620.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

I added the @not in the beginning. This expression worked for what I need:
@not(empty(triggerBody()?['AssignedTo'])) 

Thanks for the assist @PrasadAthalye 

View solution in original post

5 REPLIES 5
PrasadAthalye
Community Champion
Community Champion

@landonjochim Please try following expression.. Owner is my people picker field...

 

@empty(triggerBody()?['Owner'])

 

Like and Mark this as answer if it helps to resolve you issue.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Right. So that expression works if I want the Flow to be trigger when the people picker is empty. But I want to trigger the flow when the people picker is not empty. The people picker must be filled in before flow is triggered.

I added the @not in the beginning. This expression worked for what I need:
@not(empty(triggerBody()?['AssignedTo'])) 

Thanks for the assist @PrasadAthalye 

PrasadAthalye
Community Champion
Community Champion

Yes. Thats the right way. Glad it helped.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

I'm attempting something similar but need assistance. Like you, the "Assigned To" value is initially blank and later gets populated. I want it to send the email notification to the "Assigned To" person the FIRST time they are assigned.

 

However, IF the "Assigned To" person later changes....then I also need an email sent to the NEW "Assigned To" person.  

 

Any guidance would be appreciated.

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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 (3,062)