cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Building Custom Connector json body post request problem

Hi I'm developing custom connector in power automate and using it in flow were my custom connector must do post request so in json body im defining key value pairs as

 {
"{image name}":"{image in binary}"
}

 

image name is key and value is image data in bytes how to define json body request to accept both key and value pair dynamically from flow.Basically from email im recieving attachments i want to send attachment name as key and value as attachment content i'm facing problem to define json body post request to accept both key and value dynamically.When i gave manual inputs it worked fine. Can anyone help me to solve this issue.Thanks in Advance 🙂.

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

I think you might want to change as:

 

{

"Name" : "ImageName",

"Content" : "Image Content"

}

 

and try. 

 

You can pass a string for the name and then directly pass the binary content in the content value. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

I think you might want to change as:

 

{

"Name" : "ImageName",

"Content" : "Image Content"

}

 

and try. 

 

You can pass a string for the name and then directly pass the binary content in the content value. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Anonymous
Not applicable

Hi @yashag2255  Thanks for your suggestion it helped me lot.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (992)