From 6e99114a5029d2116466bc77c340de91bc9ac8ab Mon Sep 17 00:00:00 2001 From: SemB1610 <93974233+SemB1610@users.noreply.github.com> Date: Tue, 9 Nov 2021 09:23:00 +0100 Subject: [PATCH] Update pipedrive-2-powerbi-connector.pq --- pipedrive-2-powerbi-connector.pq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipedrive-2-powerbi-connector.pq b/pipedrive-2-powerbi-connector.pq index 0b91f53..52605ec 100644 --- a/pipedrive-2-powerbi-connector.pq +++ b/pipedrive-2-powerbi-connector.pq @@ -5,7 +5,7 @@ //This first part will get all the total deal records let -Source = Json.Document(Web.Contents("https://mypipedrive.pipedrive.com/v1/deals:(id)?api_token=12345",[Query=[api_token="12345", limit="1", start="0", get_summary="1"]])), +Source = Json.Document(Web.Contents("https://mypipedrive.pipedrive.com/v1/deals:(id)?api_token=b43168b796eca0a67f2b00172fd38e662f424777",[Query=[api_token="b43168b796eca0a67f2b00172fd38e662f424777", limit="1", start="0", get_summary="1"]])), #"Converted to Table Record" = Record.ToTable(Source), Value = #"Converted to Table Record"{2}[Value], summary = Value[summary], @@ -17,7 +17,7 @@ total_records = summary[total_count], Starts = List.Generate(()=>0, each _ < 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://mypipedrive.pipedrive.com/v1/deals:(user_id,org_id)?api_token=12345",[Query=[api_token="12345", limit="500", start=[Column1]]]))), +#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Json.Document(Web.Contents("https://mypipedrive.pipedrive.com/v1/deals:(user_id,org_id)?api_token=b43168b796eca0a67f2b00172fd38e662f424777",[Query=[api_token="b43168b796eca0a67f2b00172fd38e662f424777", limit="500", start=[Column1]]]))), //then is just branding and expanding #"Expanded Custom" = Table.ExpandRecordColumn(#"Added Custom", "Custom", {"data"}, {"Custom.data"}),