<?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 Query code question - Please help a noob! in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/893678#M30516</link>
    <description>&lt;P&gt;*cries all over his noob clothes*&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 15:14:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-08T15:14:17Z</dc:date>
    <item>
      <title>Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891884#M30430</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I’m kinda new to accessing APIs in general and I’m not really a coder. Nevertheless, I feel I must be close with this. Can anyone tell me how to fix my Power Query? It must be something super simple…&lt;BR /&gt;API key redacted, of course.&lt;BR /&gt;The Power Query editor errors saying “Token Comma Expected” and highlighting the colon after “boards (ids” in the following query:&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 = Web.Contents("https://api.monday.com/v2/",	[Headers=[Authorization="Bearer myapikey", #"Method"="GET",
			#"Content-Type"="application/json"]]
        {
            boards (ids:[000000000, 000000000]) {
                items {
                    name
                    id
                    column_values{
                        text
                    }
                }
            }
        }
    ),

in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 11:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891884#M30430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891898#M30432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to remove comma "," before &lt;STRONG&gt;in&lt;/STRONG&gt; statement:&lt;/P&gt;&lt;PRE&gt;    ),

in
    Source&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891898#M30432</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-07T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891918#M30436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much for the fast reply. I tried your suggestion, but sadly it still highlights that comma and says Token Comma Expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:31:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891918#M30436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891921#M30437</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure but it seems the code should look like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Web.Contents("https://api.monday.com/v2/",	[Headers=[Authorization="Bearer myapikey", #"Method"="GET",
			#"Content-Type"="application/json"]],
        {
            boards (ids:[000000000, 000000000]) {
                items {
                    name,
                    id,
                    column_values{
                        text
                    }
                }
            }
        }
    )

in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:34:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891921#M30437</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-07T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891929#M30438</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;still no joy, I'm afraid. Same issue persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have put this up on the monday.com dev forums too, but it's a ghost town over there.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891929#M30438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891931#M30439</link>
      <description>&lt;P&gt;(it's a GraphQL API, if that makes any difference)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:43:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891931#M30439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891945#M30441</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's difficult to try without access to source, but this should give you more understandable error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Web.Contents("https://api.monday.com/v2/",	[Headers=[Authorization="Bearer myapikey", #"Method"="GET",
			#"Content-Type"="application/json"],Query="{
            boards (ids:[000000000, 000000000]) {
                items {
                    name
                    id
                    column_values{
                        text
                    }
                }
            }
        }"]),
       #"Imported JSON" = Json.Document(Source,1252)

in
    #"Imported JSON"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891945#M30441</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-07T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891958#M30443</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;That made the editor happy with all the syntax. After converting the result to a table etc, i end up with a message saying "no query string was present".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a trail account on monday.com for you, so feel free to use the api key:&amp;nbsp;eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjMwMTk0MjY4LCJ1aWQiOjEyMDIxMzI1LCJpYWQiOiIyMDIwLTAxLTA3IDEzOjAyOjM1IFVUQyIsInBlciI6Im1lOndyaXRlIn0.5ksF8oi27hneEcfAiTrj5MNVV-4SW-Fh3KxTUZMpBII&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to get to a point where I can put my own queries in. They have a useful "try it yourself" site for the API, which I've been getting on with well:&amp;nbsp;&lt;A href="https://monday.com/developers/v2/try-it-yourself" target="_blank"&gt;https://monday.com/developers/v2/try-it-yourself&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891958#M30443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891974#M30444</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error is coming from here&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think you have to put all in quotes and double quotes and use some content record where you have to feed a JSON-Document into a Text.FromBinary&lt;/P&gt;&lt;P&gt;See here an example&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;let
	content = "{
		""method"": ""get"",
		   ""params"": {
		      ""SelectionCriteria"": {},
		      ""FieldNames"": [""Id"", ""Name""]
		   }
	}",

	Source = Json.Document(Web.Contents("https://api-sandbox.direct.yandex.com/json/v5/campaigns", [Headers=[Authorization="Bearer AQAAAAANlKwBAAQQn4Wfgbxxxxxxxxxx"], Content=Text.ToBinary(content)]))
in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:19:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891974#M30444</guid>
      <dc:creator>Jimmy801</dc:creator>
      <dc:date>2020-01-07T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891992#M30445</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="160408" data-lia-user-login="Jimmy801" class="lia-mention lia-mention-user"&gt;Jimmy801&lt;/a&gt;&amp;nbsp;, thank you but i'm too noob to know quite what you mean. i tried putting my url and API key into your example and the following for the query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
	content = "{
		""method"": ""get"",
		   ""params"": {
		      ""boards"" {
                  ""name""
              },
		   }
	}",&lt;/LI-CODE&gt;&lt;P&gt;but ended up with a result saying "No query string was present"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;i've simplified the query to the following:&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 = Web.Contents("https://api.monday.com/v2/",	[Headers=[Authorization="Bearer myapikey", #"Method"="GET",
			#"Content-Type"="application/json"]]
       {
            boards {
		name
              }
            }
    )
in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and no more syntax errors in the editor! but, on clicking done, I get: "Expression.Error: The name 'boards' wasn't recognized. Make sure it's spelled correctly."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:41:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/891992#M30445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/892003#M30446</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you implement it like in my example? Meaning inputing in a variable and then applying to web.Contents as parameter with content= Text.FromBinary?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 13:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/892003#M30446</guid>
      <dc:creator>Jimmy801</dc:creator>
      <dc:date>2020-01-07T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/892021#M30447</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="160408" data-lia-user-login="Jimmy801" class="lia-mention lia-mention-user"&gt;Jimmy801&lt;/a&gt;&amp;nbsp;I'm pretty certain that I did not, seeing as I don't know what you mean! I know you're trying to be helpful, but I'm very new to Power Query/Power BI and no real experince with coding before that.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/892021#M30447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/893678#M30516</link>
      <description>&lt;P&gt;*cries all over his noob clothes*&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/893678#M30516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-08T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query code question - Please help a noob!</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/893720#M30521</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;setting up an api with Power Query is quite complex and needs very specific knowlege of Power query but also of the api you are trying to query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We here in the forum are doing this all voluntarily and you may have problems finding someone that is willing to spent so much time on a issue. Maybe it would be best to contact a professional to create such a query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've posted an example how this has to be done in your case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-code-question-Please-help-a-noob/m-p/893720#M30521</guid>
      <dc:creator>Jimmy801</dc:creator>
      <dc:date>2020-01-08T15:40:19Z</dc:date>
    </item>
  </channel>
</rss>

