<?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 Re: Pull Rest API Query based on existing column data as key Search item in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091208#M23694</link>
    <description>&lt;P&gt;I have just followed what you have advised but I am getting an invalid Identifer for "q" within "Query=["q"="serviceInstanceId:" &amp;amp; "SIID]"&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 09:04:56 GMT</pubDate>
    <dc:creator>howie2293</dc:creator>
    <dc:date>2020-05-15T09:04:56Z</dc:date>
    <item>
      <title>Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1087906#M23651</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Trying to be able to pull from an additional data source using a Rest API which is returning the data in Json format. What I am trying to do is based on the item in one of my existing columns. The API REST query is run, and it populate the results in further columns. Has anyone been able to accomplish this?&lt;BR /&gt;&lt;BR /&gt;The REST query is " http://Server//DataServices/v1/Search/serviceLookup?q=serviceInstanceId:%(Service Identifier ID)%"&lt;BR /&gt;Then the column to match this this query to is "Service Identifier ID"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 13:06:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1087906#M23651</guid>
      <dc:creator>howie2293</dc:creator>
      <dc:date>2020-05-13T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1089308#M23680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/197709"&gt;@howie2293&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a custom column by following M query:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
  SIID = [Service Identifier ID]
in
  Json.Document(
    Web.Contents(
      "http://Server//DataServices/v1",
      [ RelativePath="/Search/serviceLookup?", 
        Query=["q"="serviceInstanceId:" &amp;amp; SIID], 
        Headers=["Authorization"= "Bearer " &amp;amp; "If_You_Use_Bearer_Token_Put_it_Here"]
      ]
    )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then expand the new rows to get result for each&amp;nbsp;[Service Identifier ID]&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 08:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1089308#M23680</guid>
      <dc:creator>v-lid-msft</dc:creator>
      <dc:date>2020-05-14T08:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091208#M23694</link>
      <description>&lt;P&gt;I have just followed what you have advised but I am getting an invalid Identifer for "q" within "Query=["q"="serviceInstanceId:" &amp;amp; "SIID]"&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 09:04:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091208#M23694</guid>
      <dc:creator>howie2293</dc:creator>
      <dc:date>2020-05-15T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091222#M23695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/197709"&gt;@howie2293&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for my mistake in formula, please try to use following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
  SIID = [Service Identifier ID]
in
  Json.Document(
    Web.Contents(
      "http://Server//DataServices/v1",
      [ RelativePath="/Search/serviceLookup?", 
        Query=[q="serviceInstanceId:" &amp;amp; SIID], 
        Headers=["Authorization"= "Bearer " &amp;amp; "If_You_Use_Bearer_Token_Put_it_Here"]
      ]
    )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 09:11:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091222#M23695</guid>
      <dc:creator>v-lid-msft</dc:creator>
      <dc:date>2020-05-15T09:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091485#M23698</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That has resolved that part of the of the script. I now come to the SIID part of this where when I have it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;#"Query1 (2)" = let&lt;BR /&gt;Source = Query1,&lt;BR /&gt;SIID= [SERVICE_IDENTIFIER_ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the expression error "Expression.Error: The name 'SIID' wasn't recognized. Make sure it's spelled correctly."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then if I use the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;SIID= #"Query1 (2)"[SERVICE_IDENTIFIER_ID],&lt;BR /&gt;#"Query1 (2)" = let&lt;BR /&gt;Source = Query1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below Expression error message&lt;/P&gt;&lt;P&gt;"Expression.Error: We cannot apply operator &amp;amp; to types Text and List.&lt;BR /&gt;Details:&lt;BR /&gt;Operator=&amp;amp;&lt;BR /&gt;Left=serviceInstanceId:&lt;BR /&gt;Right=[List]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:41:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1091485#M23698</guid>
      <dc:creator>howie2293</dc:creator>
      <dc:date>2020-05-15T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1093376#M23719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/197709"&gt;@howie2293&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems you are trying to create a new query, please try to create a custom column and use the previous code in it. such as your previous code is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
  Source = step1...,
  Step2Name = step2...,
  Step3Name = Step3...
in
  Step3Name&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then there are a&amp;nbsp;Service Identifier ID column in the table, such as following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%; height: 90px;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Service Identifier ID&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Column2..&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Column3..&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Column4..&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;1&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;2&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we cretea a custom column, it will add a additional step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
  Source = step1...,
  Step2Name = step2...,
  Step3Name = Step3...,
  #"Add Column" = Table.AddColumn(Step3Name,"Custom", 
       each let
               SIID = [Service Identifier ID]
            in
              Json.Document(
              Web.Contents(
                "http://Server//DataServices/v1",
                [ RelativePath="/Search/serviceLookup?", 
                Query=["q"="serviceInstanceId:" &amp;amp; SIID], 
                Headers=["Authorization"= "Bearer " &amp;amp; "If_You_Use_Bearer_Token_Put_it_Here"]
                ]
             )
           ))
in
  #"Add Column"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table will looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%; height: 90px;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Service Identifier ID&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Column2..&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;Column3..&lt;/TD&gt;
&lt;TD style="width: 12.5%; height: 30px;"&gt;Column4..&lt;/TD&gt;
&lt;TD style="width: 12.5%;"&gt;Custom&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;1&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 12.5%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 12.5%;"&gt;[Json1]&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30px;"&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;2&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 25%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 12.5%; height: 30px;"&gt;...&lt;/TD&gt;
&lt;TD style="width: 12.5%;"&gt;[Json2]&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the [Service Identifier ID] to the name of your column, in the query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 00:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1093376#M23719</guid>
      <dc:creator>v-lid-msft</dc:creator>
      <dc:date>2020-05-18T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Rest API Query based on existing column data as key Search item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1097468#M23772</link>
      <description>&lt;P&gt;Worked perfectly. Thanks for your help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:19:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Pull-Rest-API-Query-based-on-existing-column-data-as-key-Search/m-p/1097468#M23772</guid>
      <dc:creator>howie2293</dc:creator>
      <dc:date>2020-05-20T07:19:51Z</dc:date>
    </item>
  </channel>
</rss>

