cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PuristII808
Helper II
Helper II

Trigger not working

Good Day All

Please can I ask for some guidance. 

 

I have a flow that runs when users apply for Leave.

The trigger is the users department.

 

Thus if a Department is equal then the flow should kick of to the approver, but for some reason, although the department name matches the condition, it skips the condition and the flow doesn't run

 

as an example.. 

Get user Profile --> Department = Training

Condition triggers  - Get user profile (v2) Department is equal to Training

Expression result = false?

 

It seems to happen to a couple of different departments, where as others it works as expected.

 

TIA

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you Ajinder31

 

That seems to have done the Job. 

Not sure why it would be though.. that was one of the things I really checked and made sure that there was no spaces before or after.

 

Appreciate your help!! 

View solution in original post

4 REPLIES 4
StretchFredrik
Super User
Super User

You need to double check your condition, it is not matching up on some of the departments. It needs to be exactly the same for it to become true. 

Thank you for the reply StretchFredrik

that is where my confusion/frustration lies.. 

 

I've double and double checked the condition and it seems good. There is nothing I can see why the condition shouldn't be true?

 

 

Ajinder31
Continued Contributor
Continued Contributor

Hi @PuristII808 , Trig2.png seems to look like there is extraspace present with the text Training. Can you please try trim('Training') in Condition and see if it works

trim('Training')

Ajinder31_0-1670232043356.png

 

Thank you Ajinder31

 

That seems to have done the Job. 

Not sure why it would be though.. that was one of the things I really checked and made sure that there was no spaces before or after.

 

Appreciate your help!! 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,647)