- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Getting data with JSON body in M
Hello there,
I hope you can help me with the following problem as I have no single experience in working with JSON body in the script editor.
Below code worked all fine, but lately I've been receiving an error that an 'scode' exceeds the maximum file size.
To resolve this problem, I have added the marked lines (in blue) to the code and put 'body' in the code instead of 'postData' (highlighted in orange).
The code is working in Postman, but Power BI gives an 500 Internal Server Error.
Can you tell me what I'm doing wrong?
I have tried several adjustments (like working with Json.FromValue), but no luck.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please follow the documentation
Web.Contents - PowerQuery M | Microsoft Learn
Json.FromValue and Text.ToBinary use different syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response.
I've already looked into the documentation and understand the difference in syntax with using different functions. However, the documentation doesn't give me new insights in solving the problem. Frankly, I was surprised the above code results in an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
content = Json.FromValue([reportParameters=[limit_from = 1, limit_amount = 10]])
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Tried that before as well, but still the 500 error shows up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

As you can imagine it is nearly impossible to help with API related issues without access to said API. Do they have a demo key?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Unfortunately there's no demo key.
I'll just keep trying to sort this out. Learning by doing 😉

Helpful resources
Join our Fabric User Panel
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
7 | |
6 |