cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tech_SR
New Member

Create ServiceNow incident with attachment from email

I'm trying to create a flow that creates a service now ticket from an email. The sticking point is that i've been asked to attach a PDF of the email to the ticket. I've found Muhimbi which does a decent enough job of the conversion but I'm finding that the pdf is corrupt once it has been uploaded to ServiceNow. Given that the connector for ServiceNow currently doesn't support attachements I'm using an HTTP POST to add the attachement to the call after it's been created. I've tried emailing the attachment out after conversion and that looks fine so it's something to do with upload process. 

 

Does anyone have pdf upload to ServiceNow working?

6 REPLIES 6
MCCLabelFlow
Helper I
Helper I

somehow after all the searching we did we never came across your post until we were posting our recipe, but if you still need help check this out?

 

ServiceNow creating incidents with attachments

I have the exact same use-case, @MCCLabelFlow  link provided by you says "Not Enough Access", can you help me here!

rrodrini
Regular Visitor

Hello  @MCCLabelFlow  i have the same error with your link, please can you help me.

@SumitPandey Did you found something about that? thanks

Seven
Frequent Visitor

I'm also having the same issue here, and couldn't find anything helpful out there.

 

@MCCLabelFlow could you share the info in your link here by any chance? I don't have access to the link you posted either.

 

Many thanks in advance.

MCCLabelFlow
Helper I
Helper I

@Seven  @rrodrini  sorry guess that link got nuked.  So yes, the way ServiceNow works is that you have to create the incident first, and then associate each attachment to the attachment table using incident.sys_id as a loop.  So we create the incident, then parse the return body to get the sys_id, and then use the api/now/attachment API to post each attachment.  See below for what the post looks like.  

 

If you are having permission errors, check the permissions on the account you are using to post to ServiceNow.  You may need to create a new role to allow for posting using the attachments API.

 

image.png

Thank you so much for the details, appreciate it!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

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