<?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: A web API key can only be specified when a web API key name is provided in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471420#M74635</link>
    <description>&lt;P&gt;ah sorry , I forgot to blur my identification.&lt;/P&gt;&lt;P&gt;if i understand correctly, i can't extract information from salsify ?&lt;/P&gt;&lt;P&gt;Since you tried, can you send me the M code you wrote&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 11:50:02 GMT</pubDate>
    <dc:creator>EDO_01_1789</dc:creator>
    <dc:date>2022-04-22T11:50:02Z</dc:date>
    <item>
      <title>A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470692#M74584</link>
      <description>&lt;P&gt;Hello to all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would like to ask for your help concerning a problem on which I am on for some time...&lt;BR /&gt;The subject is about the web api and the possible connection with the web data source.&lt;/P&gt;&lt;P&gt;I would like to connect power Bi with a website called salsify.&lt;BR /&gt;&lt;BR /&gt;On the website I am asked to use the following link &lt;A href="https://app.salsify.com/api/orgs/{org_id}/export_runs" target="_blank" rel="noopener"&gt;https://app.salsify.com/api/orgs/{org_id}/export_runs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my situation the {org_id} corresponds to the following code: ABCDEFG&lt;BR /&gt;&lt;BR /&gt;I also attach the website of the site where the explanations are developed: &lt;A href="https://developers.salsify.com/reference/start-export-run" target="_blank" rel="noopener"&gt;https://developers.salsify.com/reference/start-export-run&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But when I proceed to register the web link inside power BI, I have the following error message:&lt;BR /&gt;"A web API key can only be specified when a web API key name is provided&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I tried to register my APY key within the pop-up window that was displayed, but I still don't know why it doesn't work...&lt;BR /&gt;Here is a screenshot of the pop-up window with the error message:&lt;/P&gt;&lt;P&gt;In this case my APY key is : XYZABCD&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;THANKS GUYS FOR YOUR HELP !&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 06:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470692#M74584</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T06:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470830#M74590</link>
      <description>&lt;P&gt;Accordig to the documentation you provided the API doesn't support authentication using an API key. It only supports a bearer token to be used (either in the headers or in the URL).&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.salsify.com/reference/token-authentication-via-header-parameter" target="_blank"&gt;Token Authentication (salsify.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 07:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470830#M74590</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T07:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470899#M74596</link>
      <description>&lt;P&gt;thank you for your feedback&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179837" data-lia-user-login="JirkaZ" class="lia-mention lia-mention-user"&gt;JirkaZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm afraid I don't understand?&lt;/P&gt;&lt;P&gt;so the connection with power bi is not possible?&lt;/P&gt;&lt;P&gt;if not, which link should I use?&lt;/P&gt;&lt;P&gt;I am quite new with this kind of subject, can you give me more details?&lt;/P&gt;&lt;P&gt;I thank you for the time you spend with me.&lt;/P&gt;&lt;P&gt;looks,&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470899#M74596</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T08:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470913#M74597</link>
      <description>&lt;P&gt;It means that your URL for the web request should look like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.salsify.com/api/orgs/%7Borg_id%7D/export_runs" target="_blank" rel="noopener nofollow noreferrer"&gt;https://app.salsify.com/api/orgs/ABCDEFG/export_runs&lt;SPAN&gt;?access_token=YOUR-AUTH-TOKEN&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;and in the dialog above you should select Anonymous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I noticed the Export Run is a POST command so it won't be as easy as that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to specify the request body too.&lt;BR /&gt;&lt;A href="https://blog.crossjoin.co.uk/2014/04/19/web-services-and-post-requests-in-power-query/" target="_blank"&gt;Chris Webb's BI Blog: Web Services And POST Requests In Power Query Chris Webb's BI Blog (crossjoin.co.uk)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470913#M74597</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470988#M74603</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179837" data-lia-user-login="JirkaZ" class="lia-mention lia-mention-user"&gt;JirkaZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;it still doesn't work, I am desperate...&lt;/P&gt;&lt;P&gt;I'll show you my approach:&lt;/P&gt;&lt;P&gt;you asked me to use the following link: "&lt;A href="https://app.salsify.com/api/orgs/%7Borg_id%7D/export_runs" target="_blank"&gt;https://app.salsify.com/api/orgs/{org_id}/export_runs?access_token=YOUR-AUTH-TOKEN&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;according to the site my {org_id} is here&amp;nbsp; :&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;we will say that in this example it is "ABCDEFG"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the second parameter I need is my "YOUR-AUTH-TOKEN".&lt;BR /&gt;and still according to the site it tells me that it is here :&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;in our example this one is "XYZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now when I assemble the information in power bi I get this error message&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What I want to know is, is this the right approach?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if so, why do I get this error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:53:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2470988#M74603</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471003#M74604</link>
      <description>&lt;P&gt;Did you check the article I linked? I mentioned that because the Export Run API call is a POST request, the URL approach won't work and you'll have to define a POST command. Your approach is working only for GET calls.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:56:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471003#M74604</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T08:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471092#M74608</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179837" data-lia-user-login="JirkaZ" class="lia-mention lia-mention-user"&gt;JirkaZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Humm, I hadn't seen your second link and I just read it and applied the method.&lt;/P&gt;&lt;P&gt;but since I'm very bad at programming, I guess my code doesn't mean anything.&lt;BR /&gt;&lt;BR /&gt;here is my code :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    SalsifyKey = "pOae0egsjqz12-M5TkZBxuYxzv2DN0cA8Bnalnj3Fqc",
    entity_type= product,


    ProductList = List.Transform(Product),
        each  Number.ToText(entity_type),

    GetElevations = Web.Contents(https://app.salsify.com/api/orgs/s-ce10487b-d3bb-4ee6-9f40-0b854ab97d15/export_runs?access_token=pOae0egsjqz12-M5TkZBxuYxzv2DN0cA8Bnalnj3Fqc
    [Content=Text.ToBinary(PostContents)]),

    {
  "configuration":{
    "entity_type":"product",
    "format":"csv",
    "filter":"=list:default",
    "properties":"'UPC','Product Name','Brand','Main Image','Short Description','Long Description'",
    "include_all_columns":false,
    "sort_order":"desc",
    "sort_property":"Brand"
    
  }
}

in
    #"Converted to Table"&lt;/LI-CODE&gt;&lt;P&gt;can you help me&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 09:26:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471092#M74608</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471355#M74631</link>
      <description>&lt;P&gt;First of all you shouldn't post your auth tokens publically.&lt;/P&gt;&lt;P&gt;Secondly - I checked this API call (export_runs) and it really doesn't return any usable data. It only triggers some kind of data export, but doesn't return the values of the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 11:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471355#M74631</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471420#M74635</link>
      <description>&lt;P&gt;ah sorry , I forgot to blur my identification.&lt;/P&gt;&lt;P&gt;if i understand correctly, i can't extract information from salsify ?&lt;/P&gt;&lt;P&gt;Since you tried, can you send me the M code you wrote&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 11:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471420#M74635</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T11:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471438#M74636</link>
      <description>&lt;P&gt;I only tried in Postman to see what it actually returns.&amp;nbsp;&lt;BR /&gt;But to your question - you can extract data from Salsify, but apparently using a different api call.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 11:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471438#M74636</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471448#M74637</link>
      <description>&lt;P&gt;ok thanks for the information, I will try to find another solution&lt;/P&gt;&lt;P&gt;can you send me your code for the post call ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 11:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471448#M74637</guid>
      <dc:creator>EDO_01_1789</dc:creator>
      <dc:date>2022-04-22T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: A web API key can only be specified when a web API key name is provided</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471538#M74641</link>
      <description>&lt;P&gt;I don't have any M code related to your scenario. Here you can find an example of a POST call in the comments.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.thebiccountant.com/2018/06/05/easy-post-requests-with-power-bi-and-power-query-using-json-fromvalue/" target="_blank"&gt;Easy POST requests with Power BI and Power Query using Json.FromValue – The BIccountant&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I don't think you'll need to submit a POST request in the end. There are some reporting endpoints in the API which probably utilize the GET commands where you can use the token parameter in the URL.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 12:46:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/A-web-API-key-can-only-be-specified-when-a-web-API-key-name-is/m-p/2471538#M74641</guid>
      <dc:creator>JirkaZ</dc:creator>
      <dc:date>2022-04-22T12:46:58Z</dc:date>
    </item>
  </channel>
</rss>

