<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Please help to correct Lookup &amp;amp; If-condition in Pipeline in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Please-help-to-correct-Lookup-amp-If-condition-in-Pipeline/m-p/4027164#M4429</link>
    <description>&lt;P&gt;&lt;FONT color="#333333"&gt;Please help me to correct Pipeline in Lookup and If-condition&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;I have data in a Warehouse which collect data [col : 1]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;Build pipeline for lookup data in warehouse [col : 1]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;And create If-condition and define the condition :&amp;nbsp;@&lt;SPAN&gt;equals(xml(activity(&lt;/SPAN&gt;&lt;SPAN&gt;'Lookup1'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;firstRow&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'1'&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;&lt;SPAN&gt;If is True sent message value 1 and 0 when False in MS Team&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;&lt;SPAN&gt;Correct is sent message 1 but now show message 0 ???&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 14:09:14 GMT</pubDate>
    <dc:creator>HelloTheSun</dc:creator>
    <dc:date>2024-07-05T14:09:14Z</dc:date>
    <item>
      <title>Please help to correct Lookup &amp; If-condition in Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Please-help-to-correct-Lookup-amp-If-condition-in-Pipeline/m-p/4027164#M4429</link>
      <description>&lt;P&gt;&lt;FONT color="#333333"&gt;Please help me to correct Pipeline in Lookup and If-condition&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;I have data in a Warehouse which collect data [col : 1]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;Build pipeline for lookup data in warehouse [col : 1]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;And create If-condition and define the condition :&amp;nbsp;@&lt;SPAN&gt;equals(xml(activity(&lt;/SPAN&gt;&lt;SPAN&gt;'Lookup1'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;firstRow&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'1'&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;&lt;SPAN&gt;If is True sent message value 1 and 0 when False in MS Team&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#333333"&gt;&lt;SPAN&gt;Correct is sent message 1 but now show message 0 ???&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Please-help-to-correct-Lookup-amp-If-condition-in-Pipeline/m-p/4027164#M4429</guid>
      <dc:creator>HelloTheSun</dc:creator>
      <dc:date>2024-07-05T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to correct Lookup &amp; If-condition in Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Please-help-to-correct-Lookup-amp-If-condition-in-Pipeline/m-p/4029738#M4452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="551010" data-lia-user-login="HelloTheSun" class="lia-mention lia-mention-user"&gt;HelloTheSun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify your formula:&lt;/P&gt;
&lt;P&gt;Assuming the column name in the data warehouse is [col: 1], the correct expression would be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@equals(activity('Lookup1').output.firstRow['col'], '1')
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Or if the column name is indeed 1:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@equals(activity('Lookup1').output.firstRow['1'], '1')
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Please-help-to-correct-Lookup-amp-If-condition-in-Pipeline/m-p/4029738#M4452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T08:40:52Z</dc:date>
    </item>
  </channel>
</rss>

