Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Alex_0201
Post Partisan
Post Partisan

Querying json

Hi and thanks for all the support so far!

 

Another question, this time about querying from an application that generates data in json format. Is it possible at all? Or do you need to create a script in another application and then import data from a generated json file into PowerBI?

I've recieved this from the software supplier (edited):

 

# Authentication

curl --silent --cookie-jar cookies.txt --data-urlencode "username=ttr" --data-urlencode "password=osj" https://abc.com/login > /dev/null

 

# Get ST by ID

curl --cookie cookies.txt --header "Content-Type: application/json" --request GET https://abc.com/rest/json/1234 > results.json

 

# Log out

curl --cookie cookies.txt https://abc.com/logout

6 REPLIES 6
v-kelly-msft
Community Support
Community Support

Hi  @Alex_0201 ,

 

Try to connect "Web"-"advanced",then fill in as below:

vkellymsft_0-1624960593496.png

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@Alex_0201 , You can connect directly to a source that return json.  or are looking for connectivity using json input ?

refer my video  :how to use json data

https://www.youtube.com/watch?v=MPYfEetvFH4

 

@amitchandak this video is about importing from json file. I am looking for ways to create a connection to this source above and import the data.

Hi  @Alex_0201 ,

 

Import is a way to connect json files,so what do you actually wanna do?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

@v-kelly-msft  hi 🙂 I guess I am looking for a way to import this data using those three lines (presume it's API, but this is the only info they could provide me with)

Hi @amitchandak I would like to create a connection to this source above and import the data

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.