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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.