Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

cant authenticate odata feed VSTS

i cant seem to get this query ti authenticate.

 

let
        Source = OData.Feed("
https://analytics.dev.azure.com/***/_odata/v3.0-preview/WorkItems?" & "&$select=WorkItemId", null, [Implementation="2.0"]),
    #"Retrieve VSTS DATA" = Table.AddColumn(Source, "VSTS", each Json.Document(VSTS.Contents("
&Number.ToText([WorkItemId]))))
in
    #"Retrieve VSTS DATA"

 


 

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,
    Per my test, I can connect to my own azure devops with the code you shared:

    If so, make sure you are using the correct organization name and project name in your query.
    Also make sure you are a member of the project with basic access or higher rights.
    You could also ask the project administartors to run the query to check the result.
    More information for your reference:
    Connect with data by using OData queries - Azure DevOps | Microsoft Learn
    Add users to organizations and manage access - Azure DevOps | Microsoft Learn

    Best regards,

    Joyce

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    are u able to do this in a dataflow?

  • Anonymous's avatar
    Anonymous
    Not applicable

    this is the step that doesnt work

     



     

     

     



    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous ,
      Is the gateway you selected online?
      Can you please select No Gateway and log in again to compare results?

  • Anonymous's avatar
    Anonymous
    Not applicable

    it does not allow to not have a gateway in dataflows.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous ,
      Please help confirm if other organizational users are experiencing the same issue.

  • Anonymous's avatar
    Anonymous
    Not applicable

    i am the only one who does this for my company

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous ,

       

      Thank you for the confirmation.

       

      However, the issue is more related to user credential, we still suggest you switch to different accounts to compare the results.