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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (3,880)