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

Publish Teams apps to Catalog via Graph API

Hi,

 

I am trying to publish Teams App to catalog via Graph API. I referred this GRAPH API link. But the content type we need to pass is application/zip. then, if we use HTTP action in Power Automate,  how we can pass the request body? Can anybody help me on this? And If I am trying this through Graph-client SDK, how we can achieve this? Is there any possibilities on this?

3 REPLIES 3
yashag2255
Dual Super User II
Dual Super User II

Hi @babzi_naaz 

 

You can save the zip file on SharePoint or OneDrive and then get the file content and pass it in the body of the HTTP request

 

As an initial test, you can create a manually triggered flow and configure an input of type file and pass that content in the body and try this out. 

 

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!

@yashag2255 , Thank you for your valuable reply. I'm working with HttpClient class to post this from Azure function App. So which type of data we need to be pass as http body request? Is it byte[] or some another data types? Our content-type mentioned in the documentation is application/zip and content length is 244.

 

Thanks in advance!

Hi @babzi_naaz 

 

That should be a fun project to work on. Btw, for simple test purpose, can you try using Postman and send the request to the API with the binary content of the zip file in the body? 

 

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!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,417)