Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Attachment from Email not getting attached to Incident

Sohini Kar
Tera Expert

Requirement is: Whenever anybody sends an email to xxx@servicenow.com, incident ticket is created. Incident is getting created successfully but the attachment is not getting attached in the incident.

 

All of these is happening from a flow design.

 

SohiniKar_0-1776841898616.png

 

I tried adding "copy attachment" action, but the it is still not working. The attachment is not getting attached to the incident.

SohiniKar_1-1776841993978.png

 

I created run script action:

SohiniKar_2-1776842076169.png

SohiniKar_3-1776842099496.png

 

Can someone please help me to fix this? I just need the attachment from Email to get added in the incident ticket.

 

 

2 ACCEPTED SOLUTIONS

Mark Manders
Giga Patron

There's an OOB 'Move Email Attachments to Record' action available. Just add the email record and the target record as input and all attachments are copied.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

pr8172510
Giga Guru

Hi,

This can be achieved using Flow Designer with the correct attachment handling action.

pr8172510_0-1776858871418.png

 

  1. Trigger
    • Use: Inbound Email
  2. Create Incident
    • Table: Incident
    • Map fields:
      • Short description → Subject
      • Description → Body Text
      • Caller → User Record
  3. Add Wait (Recommended)
    • Add a Wait for 2–3 seconds step
      (ensures the record is committed before attachment move)
  4. Move Attachments
    • Add action: Move Email Attachments to Record
    • Configure:
      • Email RecordTrigger → Email Record
      • Target RecordCreate Record → Incident Record

View solution in original post

5 REPLIES 5

Mark Manders
Giga Patron

There's an OOB 'Move Email Attachments to Record' action available. Just add the email record and the target record as input and all attachments are copied.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ankur Bawiskar
Tera Patron

@Sohini Kar 

already out of the box inbound action is there on incident of type NEW

Simply update the logic to copy file

why to have flow for this?

55.png

 

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Why use outdated inbound scripts when you can do it without any scripting and can even handle all emails instead of having to script for every single New, Forward and Reply?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

That inbound action is already available OOTB on incident table and creates INC.

So the logic can be updated there itself rather than creating a new flow.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader