cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Braaank
Frequent Visitor

Empty payload. JSON Expected Graph API

Hello,

I have created a custom connector for testing and I cannot get it working with POST methods. 

The weird thing is that if I test the custom connector from the configuration it works, but when I'm trying to test the method through clicking a button in PowerApps I've got the following error message:

Braaank_1-1657140388054.png

 

This is what I received when testing the custom connector:

Braaank_2-1657140479164.png

 

I was having a similar issue with the header "Content-Type" and I had to create a policy in order to set it.

 

Am I missing something here?

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Braaank
Frequent Visitor

Hi, I was able to fix this replacing the formula. It seems that the column

'fields.Title' is not valid, as it is not the same as putting 

 

GraphAPICustomConnector.CreateSpItem({fields:test})

 

Where "test" is a varible that's been set like this:

Set(test;{Title:"test"})

 

 

View solution in original post

2 REPLIES 2
Ionaaa
Helper II
Helper II

You could try to use the JSON() function on the record argument, that way at least you can force it.
Also, if you trace the call with the browser development tool, you can see what happens 😉

Braaank
Frequent Visitor

Hi, I was able to fix this replacing the formula. It seems that the column

'fields.Title' is not valid, as it is not the same as putting 

 

GraphAPICustomConnector.CreateSpItem({fields:test})

 

Where "test" is a varible that's been set like this:

Set(test;{Title:"test"})

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (2,826)