Forum Discussion

-jmdaher-'s avatar
-jmdaher-
Regular Visitor
3 years ago

Add a body to web.contents

Hello! I want to add a body to this code: 

 

let
url = "https://pos.linisco.com.ar/sale_orders",

Source = Json.Document(Web.Contents(url, [Headers = [#"Content-Type"="application/json", #"Accept"="application/json", #"X-User-Email"="xxxxxx", #"X-User-Token"="xxxxxx"]])),

in
Source

 

The body in postman is:

{
    "fromDate" : "1/1/2022",
    "toDate" : "12/11/2022"
}
 
Any suggestions? 
 
Thanks!

3 Replies