Open Outlook Client from UI Action

questsal78
Giga Expert

Hi,

I'm trying to open outlook client from UI Action in catalog task but the browser does nothing. Please advise what I'm missing here.

var subject="test";
var ex="this is a test";
gs.setRedirect("mailto:ashu@example.com?subject="+subject+ "&body=" +ex+ '');

 

 

find_real_file.png

 

Any help will be appreciated.

 

Thank you,

Mujtaba

5 REPLIES 5

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Try using

var subject="test";
var ex="this is a test";
gs.setRedirect("mailto:abc@gmail.com?subject="+subject+"&body="+ex);

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mujtaba,

This works fine for me. It asks me whether to open outlook or some other app

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

SanjivMeher
Kilo Patron
Kilo Patron

Works fine for me. Do you have pop-up blocker enabled? You should disable that


Please mark this response as correct or helpful if it assisted you with your question.

Gentlemen,

 

I've tried all in Chrome but it doesn't do anything.

In IE, it opens a new chrome window

In Firefox, it open a new chrome window

F12 console:

find_real_file.png

find_real_file.png

 

Thanks,