Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
HelloTheSun
Helper I
Helper I

Please help to correct Lookup & If-condition in Pipeline

Please help me to correct Pipeline in Lookup and If-condition

  1. I have data in a Warehouse which collect data [col : 1]
  2. Build pipeline for lookup data in warehouse [col : 1]
  3. And create If-condition and define the condition : @equals(xml(activity('Lookup1').output.firstRow),'1'
  4. If is True sent message value 1 and 0 when False in MS Team
  5. Correct is sent message 1 but now show message 0 ???

HelloTheSun_0-1720188330902.png

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HelloTheSun ,

 

Try to modify your formula:

Assuming the column name in the data warehouse is [col: 1], the correct expression would be:

@equals(activity('Lookup1').output.firstRow['col'], '1')

 Or if the column name is indeed 1:

@equals(activity('Lookup1').output.firstRow['1'], '1')

 

Best Regards,
Adamk Kong

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @HelloTheSun ,

 

Try to modify your formula:

Assuming the column name in the data warehouse is [col: 1], the correct expression would be:

@equals(activity('Lookup1').output.firstRow['col'], '1')

 Or if the column name is indeed 1:

@equals(activity('Lookup1').output.firstRow['1'], '1')

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.