Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Using HTTP POST action with Samanage API

2019-01-10_15-10-47.jpgHey all,

I am trying to attach a file to an incident in Samange using the generic HTTP action. Samanage's API documentation to do this can be found here.


Where in the HTTP Action do


-F "file[attachable_type]=PARENT_OBJECT_TYPE"
-F "file[attachable_id]=PARENT_OBJECT_ID"
-F "file[attachment]=@/PATH/TO/FILE"

go? And what is the proper formatting?



Community Support Team
Community Support Team

Re: Using HTTP POST action with Samanage API

Hi @parmiras,


Would you please share a full screenshot of the configuration of your flow?

Would you please share a run history of your flow?


Best regards,


Level: Powered On

Re: Using HTTP POST action with Samanage API



Hey, thanks for the reply. Sure, here's an example of a failed run:


Edit: Also, just FYI, I've omitted that "Initialize Variable" step. I just pass the literal object instead. Result was the same.

Level: Powered On

Re: Using HTTP POST action with Samanage API



I've made some progress.  I believe I've got the correct format in the body, but when I try to pass the URL of the file I create in the Create File action, I get a 500 Internal Server Error.


On the other hand, if I exclude the URL for the file I want to attach, I no longer get the server error, but instead (obviously) get an error stating that a required parameter is missing.  My takeaway is that Samanage's API is attempting to access the file through the filepath im providing and timing out because it doesnt have permission into the tenant? Is there a way to do this more effectively?

Level: Powered On

Re: Using HTTP POST action with Samanage API



Good morning,


Did you have any insight regarding my previous post?

Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,692)