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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.