web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using HTTP POST action...
Power Automate
Unanswered

Using HTTP POST action with Samanage API

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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. https://www.samanage.com/docs/api/attachments/.

 

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?

 

Thanks!

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    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,

    Alice

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuazh-msft

     

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

    https://imgur.com/a/ULfeGnw

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuazh-msft

     

    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?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yuazh-msft

     

    Good morning,

     

    Did you have any insight regarding my previous post?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard