From Mailbox need to create SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 11:35 PM
Hi All,
I need to create SCTASK from one dummy mailbox, if any one have idea about this like if send some comments send to particular mail box then it will trigger and create a SCTASK Servicenow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 11:48 PM
Hi there,
You could go for an Inbound Action or Inbound Flow.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2024 01:28 AM
Hello @BHARATHS ,
You can use Flow Designer for it.
Trigger : Application >> Inbound mail.
https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/flow-designer/task/...
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2024 05:45 AM
Hi @BHARATHS ,
You need ensure the email you are sending is reaching to servicenow.
If you have dummy mailbox then configure a foward rule in the mailbox to your servicenow instance - eg. <instance>@service-now.com, this will ensure that emails being send to the mailbox reaches to servicenow, other way is to add the <instance>@service-now.com in the DL of the mailbox so that any email sent to dummy mailbox also gets send to Servivenow.
Once email lands in ServiceNow, create inbound email actions for NEW and FW type so that it processes the emails and tasks are getting created.
For eg-
Create an Inbound Email Action:
Navigate to System Policy > Email > Inbound Actions - > New.
Name: Provide a name "Create SCTASK from Email".
Target Table: Set this to Catalog Task [sc_task].
Type: Choose New
Set conditions as per requirement
In the script section, you can define the script to create an SCTASK.
(function runInboundEmailAction(email, email_action, event) {
var task = new GlideRecord('sc_task');
task.initialize();
task.short_description = email.subject;
task.description = email.body_text;
task.assignment_group = 'your_assignment_group';
task.insert();
})(email, email_action, event);
If my response has resolved your query, please consider giving it a thumbs up and marking it as the correct answer!
Thanks & Regards,
Sanjay Kumar