How to send an email just by clicking on the hyperlink in a received email?

yogesh15dd
Tera Guru

hi,

As soon as i click on a hyperlink which is there in an email received from Service Now , it should send an email to one more email address.

I wrote the following in the email script, when i click on the hyperlink "Send email" , it opens an email sending pop up box, where i have to click on "Send" button again.

var mailLink = '<a href="mailto:myinstance@service-now.com?subject= Re:&body=">Send email</a>';

template.print(mailLink);

any idea how to do this?

Regards

Yogish

1 ACCEPTED SOLUTION

Hi Yogesh,



Processors would be a great way to do it. That would be a   good use case for them. Don't forget to check your ACLs. The type field has a specific choice for securing processors.



Check Episode 19 of TechNow: Let's Process the Power of Processors | TechNow Live Expert Chat


Processors


View solution in original post

15 REPLIES 15

Hi Yogesh,



The only way to do one click approvals is to create a UI page as outlined in that other thread. I strongly recommend against this for security reasons as no authentication is required to do this as a "one click" solution. If you add security (ensure someone is logged in), then it is no longer a one-click solution.


Thanks Chuck.


Now, i have decided use the :Navigating by URL technique



By using the below   'Navigating by URL' link   i can go to the incident form and click on "Submit" to create the incident, but can avoid clicking on "Submit"? , so that incident will be created automatically as soon as i click on the link? and may i close the window as well automatically (using display business rule or somewhere)?


 


https://<instance name>.service-now.com/nav_to.do?uri=incident.do?sys_id=-1%26sysparm_query=priority=1^incident_state=3^caller_id=javascript:gs.getUserID()


Hi Yogesh,



Sorry, this will take you to a new form and fill in some fields. You still need to click Submit.



Additionally, Even if you could get the recoed to produce in a single click, you still need the person to stop at the login screen and authenticate if they aren't already (or if their session timed out.) otherwise gs.getUserID() won't know who the caller is.



Even if all that worked, you still have no details about what the user's issue is and have to call them back. How does this speed things up?



What is the business use case for this?


Hi Chuck,



I agree.



Basically my requirement was to create purchase orders and request items on a link click in an email (by passing the parms), so i was thinking to trigger an emails to service now when the link is clicked and the handle the emails in inbound actions.



Now i'm using service now processors, which can run server side scripts on a click, where i could pass the parameters, update the existing records etc.



Do you feel some oddities or security constraints about using processors Chuck?, this again asks for a login credentials if SSO is not set up, which is fine with us.



Thanks & Regards


Yogesh Dafedar


Hi Yogesh,



Processors would be a great way to do it. That would be a   good use case for them. Don't forget to check your ACLs. The type field has a specific choice for securing processors.



Check Episode 19 of TechNow: Let's Process the Power of Processors | TechNow Live Expert Chat


Processors