UI Action Trigger Outlook Email Client auto populate

chingher
Giga Contributor

Use Case: When I click a button "Outlook" Client load and auto populate Variable fields from the form into the email body in Outlook.

So I got the script to open outlook client.

  • window.open('mailto:','email');

I try capturing setting variables and inputting them into the above script but it isn't working.

find_real_file.png

1 ACCEPTED SOLUTION

Replace code with below



window.open('mailto:test@live.com?subject='+setsubject+'&bodymessage%20goes%20here','email');



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

View solution in original post

6 REPLIES 6

nthumma
Giga Guru

line 2 should be var setSubject = g_form.getValue('u_system');


SanjivMeher
Kilo Patron
Kilo Patron

The correct syntax is below


var setsubject = g_form.getValue('u_system');



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

What about Body?


So i change my code however in outlook it's still giving me "setsubject"find_real_file.png