<?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: Power BI and Pipedrive API - Pagination issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2797722#M38898</link>
    <description>&lt;P&gt;In this video I explained how I connect to Pipedrive API just using Power BI (Power Query):&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=gnhv4qfJ4yA&amp;amp;t=582s" target="_blank"&gt;https://www.youtube.com/watch?v=gnhv4qfJ4yA&amp;amp;t=582s&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 19:43:53 GMT</pubDate>
    <dc:creator>bxgalleg</dc:creator>
    <dc:date>2022-09-26T19:43:53Z</dc:date>
    <item>
      <title>Power BI and Pipedrive API - Pagination issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2558176#M36492</link>
      <description>&lt;P&gt;Hi everyone, I have been working on a connection between Power BI and Pipedrive API rest. The pipedrive API limit your query to 500 rows per page, so I inspired in &lt;A href="https://github.com/davser/PipedriveTOPowerBI/blob/master/pipedrive-2-powerbi-connector.pq" target="_self"&gt;&lt;STRONG&gt;this code&lt;/STRONG&gt;&lt;/A&gt; to solve my issues. When I work with the entity "Deals", everything works find in the next code:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let 
Source = Json.Document(Web.Contents("https://mycompany.pipedrive.com/v1/deals?api_token=abcde12345",[Query=[api_token="abcde12345", limit="1", start="0", get_summary="1"]])), 
#"Converted to Table Record" = Record.ToTable(Source),
Value = #"Converted to Table Record"{2}[Value],
summary = Value[summary],
total_records = summary[total_count],

//This second part, tries to resolve the maximum limit value of 500 that pipedrive have
//Starts 0, 500, 1000, 1500 until the total records

Starts = List.Generate(()=&amp;gt;0, each _ &amp;lt; total_records, each _ + 500), 
#"Converted to Table" = Table.FromList(Starts, Splitter.SplitByNothing(), null, null, ExtraValues.Error), 
#"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type text}}), 
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Json.Document(Web.Contents("https://mycompany.pipedrive.com/v1/deals?api_token=abcde12345",[Query=[api_token="abcde12345", limit="500", start=[Column1]]]))),

//then is just branding and expanding
#"Expanded Custom" = Table.ExpandRecordColumn(#"Added Custom", "Custom", {"data"}, {"Custom.data"}),
    #"Se expandió Custom.data" = Table.ExpandListColumn(#"Expanded Custom", "Custom.data")
in
    #"Se expandió Custom.data"&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works fine for the entity "Deals" and also "Organizations" but for some reasson, it does not work with the entity "Notes". I checked for the steps one by one to see the error in steps of the query when working with Notes and it if like the parameter (get_summary="1") is not available on the Notes entity. I'm not exactly sure of how this get_summary works (because as I said before, I inspired in someone else code); would appreciate some explanation of why I'm getting this error. Some print of the error in power bi (power query):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same step for entity "Deals":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bxgalleg_0-1654266908900.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/726624i6FD456629021548F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bxgalleg_0-1654266908900.png" alt="bxgalleg_0-1654266908900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same step for entity "Notes":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bxgalleg_1-1654266961310.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/726626i90092D9983458A03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bxgalleg_1-1654266961310.png" alt="bxgalleg_1-1654266961310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note: The connection to the entity Notes works perfectly when I uses the web connector without the pagination query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;BR /&gt;&lt;BR /&gt;Byron - Ecuador&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 14:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2558176#M36492</guid>
      <dc:creator>bxgalleg</dc:creator>
      <dc:date>2022-06-03T14:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI and Pipedrive API - Pagination issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2558933#M36500</link>
      <description>&lt;P&gt;It's hard to say what's going on here - as far as I can see the error is telling you that the "Summary" field in the response from the web service isn't found. Maybe the structure of the response is different for Notes?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 11:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2558933#M36500</guid>
      <dc:creator>cwebb</dc:creator>
      <dc:date>2022-06-04T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI and Pipedrive API - Pagination issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2797722#M38898</link>
      <description>&lt;P&gt;In this video I explained how I connect to Pipedrive API just using Power BI (Power Query):&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=gnhv4qfJ4yA&amp;amp;t=582s" target="_blank"&gt;https://www.youtube.com/watch?v=gnhv4qfJ4yA&amp;amp;t=582s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-and-Pipedrive-API-Pagination-issue/m-p/2797722#M38898</guid>
      <dc:creator>bxgalleg</dc:creator>
      <dc:date>2022-09-26T19:43:53Z</dc:date>
    </item>
  </channel>
</rss>

