{"id":16924,"date":"2020-10-15T09:33:15","date_gmt":"2020-10-14T20:33:15","guid":{"rendered":"http:\/\/help.psoda.com\/?page_id=16924"},"modified":"2024-01-31T01:16:11","modified_gmt":"2024-01-31T01:16:11","slug":"microsoft-bi-integration","status":"publish","type":"page","link":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/","title":{"rendered":"Microsoft BI integration"},"content":{"rendered":"<div class='content-column three_fourth'>Psoda data can be used in Microsoft BI to create interactive visualizations and business intelligence capabilities with their interface.\r\n<br>\r\n<br>\r\nTo get data into Microsoft BI, first we need the <b>API key<\/b> of a user who has access to the data you want.\r\n<br>\r\n<br>\r\nTo do this navigate to that user and select the three-dot options menu. In there, click on <b>\u201cAPI key\u201d<\/b> as shown in Figure 1.\r\n\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_1.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 1 &#8211; User options menu API key<\/strong><\/p>\r\n\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_2.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 2 &#8211; User API key popup<\/strong><\/p>\r\n\r\n<b>Copy or note down<\/b> the API key found in the popup (keep this API key safe. It could be used by a malicious user to access all of your data).\r\n<br>\r\n<br>\r\nNext, we need the <b>object ID<\/b> of the organisation\/programme\/project that you want to use the data from. Navigate to the organisation\/programme\/project that you want to use and go to the <b>details tab.<\/b> There you will find the object ID as shown in Figure 3.\r\n<br>\r\n<br>\r\n<b>Copy or note down<\/b> this object ID.\r\n\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_3.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 3 &#8211; Organisation details tab object ID<\/strong><\/p>\r\n\r\nOpen Microsoft BI on your computer.\r\n<br>\r\n<br>\r\nClick the <b>\u201cGet data\u201d<\/b> dropdown and select <b>\u201cWeb\u201d<\/b> as shown in Figure 4.\r\n\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2021\/03\/bi_integration_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2021\/03\/bi_integration_4.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 4 &#8211; Microsoft BI &#8220;get data&#8221; dropdown<\/strong><\/p>\r\n\r\nClick on <b>\u201cAdvanced\u201d<\/b> in the popup.\r\n\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2021\/03\/bi_integration_5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2021\/03\/bi_integration_5.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 5 &#8211; Microsoft BI &#8220;get data&#8221; popup<\/strong><\/p>\r\n\r\nFigure 5 shows what we need to enter in this popup to get Psoda data into Microsoft BI.\r\n<br>\r\n<br>\r\nFirst, we need to create the URL of the data we want from Psoda. Use this URL as a guide: \r\n<br>\r\n<br>\r\n<span style=\"color:#f58836;\">https:\/\/www.psoda.com\/rest_api\/v1\/objects\/<b>INSERT_OBJECT_ID<\/b>\/descendants.json?classes=<b>lesson<\/b>&#038;fields=<b>obj_id,description,category<\/b><\/span>\r\n<br>\r\n<br>\r\n<b>Copy and paste<\/b> the above URL into <b>\u201cURL parts\u201d<\/b> on the Microsoft BI popup as shown in Figure 5.\r\n<br>\r\n<br>\r\nIn the URL, where it says \u201cINSERT_OBJECT_ID\u201d, change that text to the <b>object ID noted down earlier.<\/b>\r\n<br>\r\n<br>\r\nIn the URL, where it says \u201clesson\u201d, change that text to whichever <b>type of data<\/b> you would like to get. For example, this could be \u201caction\u201d and that would return all the actions on this organisation\/programme\/project.\r\n<br>\r\n<br>\r\nIn the URL after it says \u201cfields\u201d, there is a <b>list of fields<\/b> that will be included for each of the data. Currently it will get all the lessons and each of their object IDs, descriptions, and categories. You can change these to whatever you like. For example, if you want the title of the lesson you can add \u201c,title\u201d to the URL.\r\n<br>\r\n<br>\r\nOnce you are happy with what data you want, the last step is to include the API key noted down earlier. Under the option \u201cHTTP request header parameters\u201d in the Microsoft BI popup, enter the text <b>\u201cAPI-Key\u201d<\/b> as shown in Figure 5. In the field next to that, <b>paste the API key<\/b> noted down earlier.\r\n<br>\r\n<br>\r\nClick \u201cOk\u201d and you will now be able to use your Psoda data in Microsoft BI!\r\n\r\n<h3>Pagination using API V2<\/h3>\r\n<br>\r\nTo use version 2 of our API a little more configuration is required.\r\n<br>\r\n<br>\r\nTo start, create a new blank query.\r\n<br>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_6.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 6 &#8211; Blank Query button in PowerBI<\/strong><\/p>\r\n<br>\r\n<br>\r\nPaste the text below into the blank query, replace YOUR_API_REQUEST_HERE with your API request URI. Replace YOUR_API_KEY_HERE with your API key. Name this function something related to the query, in this case we will use fGetDescendants.\r\n<br>\r\n<br>\r\n= (Pagesize as number)=>\r\n<br>\r\nlet\r\n<br>\r\n&ensp;Source = Json.Document(Web.Contents(&#34;YOUR_API_REQUEST_HERE&#34;&#038;&#34;&#038;pageSize=&#34;&#038;Number.ToText(Pagesize), [Headers=[#&#34;API-Key&#34;=&#34;YOUR_API_KEY_HERE&#34;]]))\r\n<br>\r\nin\r\n<br>\r\n&ensp;Source\r\n<br>\r\n<br>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_7.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 7 &#8211; Standard request query<\/strong><\/p>\r\n<br>\r\n<br>\r\nCreate another blank query, and paste the text below in. Replace YOUR_API_KEY_HERE with your API key. Set the name of this query to <b>fNextPage<\/b>.\r\n<br>\r\n<br>\r\n= (Link as text)=>\r\n<br>\r\nlet\r\n<br>\r\n&ensp;Source = Json.Document(Web.Contents(Link, [Headers=[#&#34;API-Key&#34;=&#34;YOUR_API_KEY_HERE&#34;]]))\r\n<br>\r\nin\r\n<br>\r\n&ensp;Source\r\n<br>\r\n<br>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_8.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 8 &#8211; Blank Query button inside query editor<\/strong><\/p>\r\n<br>\r\n<br>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_9.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 9 &#8211; Next Page Query with correct function name<\/strong><\/p>\r\n<br>\r\n<br>\r\nNow create one more blank query, this will be the one that retrieves all of your data from Psoda. Paste the text below in, replace FIRST_FUNCTION_HERE with the first function you have created. In this case it will be fGetDescendants\r\n<br>\r\n<br>\r\n= List.Generate(()=>\r\n<br>\r\n[Result = if List.IsEmpty(FIRST_FUNCTION_HERE(50)[data]) then null else FIRST_FUNCTION_HERE(50)[data], Next= FIRST_FUNCTION_HERE(50)[links][next]],\r\n<br>\r\neach [Result]<>null,\r\n<br>\r\neach [Result = if [Next]=null then null else if List.IsEmpty(fNextPage([Next])[data]) then null else fNextPage([Next])[data], Next= if [Next]=null then null else if fNextPage([Next])[links] is list then null else fNextPage([Next])[links][next]],\r\n<br>\r\neach [Result])\r\n<br>\r\n<br>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ss_img alignnone size-full wp-image-7169\" src=\"\/help\/wp-content\/uploads\/2024\/01\/bi_integration_10.png\" alt=\"\" width=\"1163\" height=\"199\" \/><\/a><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 10 &#8211; Final request and all data returned from API<\/strong><\/p>\r\n<br>\r\n<br>\r\nYou should now be getting all of your data from our API.<\/div>\r\n<div class='content-column one_fourth last_column'><h4>Related topics<\/h4>\r\n<ul>\r\n \t<li><a href=\"\/help\/email-integration\">Email integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/microsoft-excel-integration\">Microsoft Excel integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/microsoft-project-integration\">Microsoft Project integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/microsoft-teams-integration\">Microsoft Teams integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/microsoft-word-integration\">Microsoft Word integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/jira-integration\">JIRA integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/xml-integration\">XML integration<\/a><\/li>\r\n        <li><a href=\"\/help\/comma-separated-values-csv-integration\">CSV integration<\/a><\/li>\r\n \t<li><a href=\"\/help\/technology-one-integration\">Technology One integration<\/a><\/li>\r\n<\/ul><\/div><div class='clear_column'><\/div>","protected":false},"excerpt":{"rendered":"<p><div class='content-column three_fourth'><\/div>  Psoda data can be used in Microsoft BI to create interactive visualizations and business intelligence capabilities with their interface.      To get data into Microsoft BI, first we need the API key of a user who has access to the data you want.      To<\/p>\n","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-16924","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Microsoft BI integration - Psoda Help Centre<\/title>\n<meta name=\"description\" content=\"Read the documentation and learn how to use Psoda&#039;s Microsoft BI integration\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Microsoft BI integration - Psoda Help Centre\" \/>\n<meta property=\"og:description\" content=\"Read the documentation and learn how to use Psoda&#039;s Microsoft BI integration\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/\" \/>\n<meta property=\"og:site_name\" content=\"Psoda Help Centre\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-31T01:16:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/\",\"url\":\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/\",\"name\":\"Microsoft BI integration - Psoda Help Centre\",\"isPartOf\":{\"@id\":\"https:\/\/www.psoda.com\/help\/#website\"},\"datePublished\":\"2020-10-14T20:33:15+00:00\",\"dateModified\":\"2024-01-31T01:16:11+00:00\",\"description\":\"Read the documentation and learn how to use Psoda's Microsoft BI integration\",\"breadcrumb\":{\"@id\":\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/#breadcrumb\"},\"inLanguage\":\"en-NZ\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.psoda.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft BI integration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.psoda.com\/help\/#website\",\"url\":\"https:\/\/www.psoda.com\/help\/\",\"name\":\"Psoda Help Centre\",\"description\":\"Information and support to help you use Psoda\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.psoda.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-NZ\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Microsoft BI integration - Psoda Help Centre","description":"Read the documentation and learn how to use Psoda's Microsoft BI integration","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/","og_locale":"en_US","og_type":"article","og_title":"Microsoft BI integration - Psoda Help Centre","og_description":"Read the documentation and learn how to use Psoda's Microsoft BI integration","og_url":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/","og_site_name":"Psoda Help Centre","article_modified_time":"2024-01-31T01:16:11+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/","url":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/","name":"Microsoft BI integration - Psoda Help Centre","isPartOf":{"@id":"https:\/\/www.psoda.com\/help\/#website"},"datePublished":"2020-10-14T20:33:15+00:00","dateModified":"2024-01-31T01:16:11+00:00","description":"Read the documentation and learn how to use Psoda's Microsoft BI integration","breadcrumb":{"@id":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/#breadcrumb"},"inLanguage":"en-NZ","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.psoda.com\/help\/microsoft-bi-integration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.psoda.com\/help\/"},{"@type":"ListItem","position":2,"name":"Microsoft BI integration"}]},{"@type":"WebSite","@id":"https:\/\/www.psoda.com\/help\/#website","url":"https:\/\/www.psoda.com\/help\/","name":"Psoda Help Centre","description":"Information and support to help you use Psoda","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.psoda.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-NZ"}]}},"_links":{"self":[{"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/pages\/16924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/comments?post=16924"}],"version-history":[{"count":16,"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/pages\/16924\/revisions"}],"predecessor-version":[{"id":24456,"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/pages\/16924\/revisions\/24456"}],"wp:attachment":[{"href":"https:\/\/www.psoda.com\/help\/wp-json\/wp\/v2\/media?parent=16924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}