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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Richard_Halsall
Helper IV
Helper IV

API POST request with body containing text variable

Hi

 

I am looking for help after forum research I am struggling to solve 

I have the following API call which works fine and returns the correct data in Postman

Richard_Halsall_1-1711375808134.png

Richard_Halsall_2-1711375858041.png


I have 2 versions of m code

Version 1

let
 
RelativePath="asset/list",
headers=[#"X-Auth-Token" ="XXXXXXX"],
 
body = "{""extended"" : ""True"",
 
    }",
 
source = Web.Contents(
 
url& RelativePath,
[Headers = headers,Content = Text.ToBinary(body)]
),
 
jsonresponse = Json.Document(source),
 
    #"Converted to Table" = Record.ToTable(jsonresponse),
    #"Removed Other Columns" = Table.SelectColumns(#"Converted to Table",{"Value"}),
    #"Expanded Value" = Table.ExpandListColumn(#"Removed Other Columns", "Value")
in
    #"Expanded Value"

Version 2

let

Json = Json.FromValue({[extended= true]}),

url = "https://gev.collabaro.com/tapi/v1/",
RelativePath="asset/list",
headers=[#"X-Auth-Token" ="XXXXXXX"],


source = Web.Contents(

url& RelativePath,
[Headers = headers,Content = Json]
),

jsonresponse = Json.Document(source),


#"Converted to Table" = Record.ToTable(jsonresponse),
#"Removed Other Columns" = Table.SelectColumns(#"Converted to Table",{"Value"}),
#"Expanded Value" = Table.ExpandListColumn(#"Removed Other Columns", "Value")
in
#"Expanded Value"



Both of which are not passing the body variable of extended. I have checked with the developer and extended is a data type of text
 
Can anybody help with a solution
 
Many thanks
1 ACCEPTED SOLUTION

3 REPLIES 3
lbendlin
Super User
Super User

When you look at the network trace do you see a POST request or a GET request being created?

Hi, I see a POST request

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors