<?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 Power Bi Graph Connector - Paging odata.nextlink in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/667460#M19070</link>
    <description>&lt;P&gt;Hi, I used this guide "&lt;A href="https://docs.microsoft.com/en-us/power-query/samples/mygraph/readme" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-query/samples/mygraph/readme&lt;/A&gt;" to create a power bi connector to microsoft graph api.&lt;/P&gt;&lt;P&gt;Everithing works, but when I call an api with more than 999 rows, like "&lt;A href="https://graph.microsoft.com/beta/users" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/beta/users&lt;/A&gt;", I receive the odata.nextlink to retrieve the others pages.&lt;/P&gt;&lt;P&gt;The connector works with 4 functions:&lt;/P&gt;&lt;P&gt;startlogin, finishlogin, refreshtoken and logout.&lt;/P&gt;&lt;P&gt;I didn't manage to call odata.nextlink and append all the pages in one table.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2019 10:39:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-11T10:39:53Z</dc:date>
    <item>
      <title>Power Bi Graph Connector - Paging odata.nextlink</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/667460#M19070</link>
      <description>&lt;P&gt;Hi, I used this guide "&lt;A href="https://docs.microsoft.com/en-us/power-query/samples/mygraph/readme" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-query/samples/mygraph/readme&lt;/A&gt;" to create a power bi connector to microsoft graph api.&lt;/P&gt;&lt;P&gt;Everithing works, but when I call an api with more than 999 rows, like "&lt;A href="https://graph.microsoft.com/beta/users" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/beta/users&lt;/A&gt;", I receive the odata.nextlink to retrieve the others pages.&lt;/P&gt;&lt;P&gt;The connector works with 4 functions:&lt;/P&gt;&lt;P&gt;startlogin, finishlogin, refreshtoken and logout.&lt;/P&gt;&lt;P&gt;I didn't manage to call odata.nextlink and append all the pages in one table.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 10:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/667460#M19070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-11T10:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Graph Connector - Paging odata.nextlink</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/667462#M19071</link>
      <description>&lt;P&gt;I've already seen&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/how-to-fully-load-data-from-limited-HTTP-API/td-p/154241/page/2" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/how-to-fully-load-data-from-limited-HTTP-API/td-p/154241/page/2&lt;/A&gt;&amp;nbsp;, but it's pretty hard to implement it in the connector.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 10:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/667462#M19071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-11T10:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Graph Connector - Paging odata.nextlink</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/1050749#M23342</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Good afternoon!!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I saw many websites, chats and posts, but few are objective and each person values his method as if it were unique !!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Each has its logic, so there is no single method !!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Objectively, for me ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;It worked this way:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Enjoy:&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;===========================&lt;BR /&gt;let&lt;BR /&gt;tenantId = "12345678-9012-3456-7890-123456789012",&lt;BR /&gt;clientId = "abcdefgh-9012-3456-7890-123456789012",&lt;BR /&gt;clientSecret = "1234567890qwertyuiopasdf",&lt;BR /&gt;grantType = "client_credentials",&lt;BR /&gt;resource = "&lt;A href="https://graph.windows.net/" target="_blank"&gt;https://graph.windows.net/&lt;/A&gt;",&lt;BR /&gt;endpointUsers = "/users",&lt;BR /&gt;apiVersion = "?api-version=1.6",&lt;/P&gt;&lt;P&gt;baseURL="&lt;A href="https://login.microsoftonline.com" target="_blank"&gt;https://login.microsoftonline.com&lt;/A&gt;",&lt;BR /&gt;relativePath = "/"&amp;amp;tenantId&amp;amp;"/oauth2/token",&lt;BR /&gt;urlToken = baseURL &amp;amp; relativePath,&lt;/P&gt;&lt;P&gt;body = [client_id=clientId,&lt;BR /&gt;grant_type=grantType,&lt;BR /&gt;client_secret=clientSecret,&lt;BR /&gt;resource=resource],&lt;/P&gt;&lt;P&gt;//Access&lt;BR /&gt;Source = Json.Document(Web.Contents(urlToken, [Headers=[#"Accept" = "application/json", #"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"],Content = Text.ToBinary(Uri.BuildQueryString(body))])),&lt;BR /&gt;accessToken = Source[access_token],&lt;BR /&gt;tokenType = Source[token_type],&lt;BR /&gt;fullAccessToken = tokenType&amp;amp;" "&amp;amp;accessToken,&lt;/P&gt;&lt;P&gt;//Get Users&lt;BR /&gt;SourceUsers = OData.Feed(resource &amp;amp; tenantId &amp;amp; endpointUsers, [Authorization=fullAccessToken], [Implementation="2.0", Query=[#"api-version"="1.6"]]),&lt;/P&gt;&lt;P&gt;Step1 = Table.RemoveColumns(SourceUsers,{"createdObjects", "department", "employeeId", "facsimileTelephoneNumber", "legalAgeGroupClassification", "jobTitle", "telephoneNumber", "mobile", "givenName", "physicalDeliveryOfficeName", "consentProvidedForMinor", "sipProxyAddress", "streetAddress", "city", "state", "country", "postalCode", "ageGroup", "companyName", "preferredLanguage", "manager", "directReports", "members", "transitiveMembers", "owners", "ownedObjects", "appRoleAssignments", "licenseDetails", "oauth2PermissionGrants", "ownedDevices", "registeredDevices", "assignedLicenses", "assignedPlans", "deletionTimestamp", "immutableId", "isCompromised", "lastDirSyncTime", "passwordProfile", "provisionedPlans", "provisioningErrors", "proxyAddresses", "signInNames", "usageLocation", "userIdentities", "memberOf", "transitiveMemberOf", "thumbnailPhoto", "createdOnBehalfOf", "dirSyncEnabled", "onPremisesDistinguishedName", "onPremisesSecurityIdentifier", "showInAddressList"}),&lt;BR /&gt;Step2 = Table.TransformColumnTypes(Step1,{{"createdDateTime", type datetime},{"refreshTokensValidFromDateTime", type datetime}}),&lt;BR /&gt;Step3 = Table.TransformColumns(Step2, {"otherMails", each Text.Combine(List.Transform(_, Text.From)), type text})&lt;BR /&gt;in&lt;BR /&gt;Step3&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 12:08:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Graph-Connector-Paging-odata-nextlink/m-p/1050749#M23342</guid>
      <dc:creator>apods1979</dc:creator>
      <dc:date>2020-04-27T12:08:30Z</dc:date>
    </item>
  </channel>
</rss>

