How to send Email on a button Click and at the same time submit the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2021 07:05 AM
We have a Related list on the Task form which is reference to a custom table u_table1.
When we click on New button it open a Dialog view of u_table1 table.
On the custom form we have a button Send Email with a UI action {emailClientOpenPop('u_Table1');}which send an email from that popup after that it comes back to the custom form dialog view then we can submit the record by submitting it.
But we want when the Email is sent and record should be submitted as well in 1 Click. Kindly suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2021 09:58 AM
Not sure below code will work in UI Dialog or not but it does work in UI Action. You can try invoking the OOB Email Client with below code.
emailClientOpen(this,'table_name_on_which_the_email_will_be_triggered');
enter the table name after this.
Above will open the OOB email dialog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2021 09:49 PM
Thanks Alok, I am able to invoke Email in dialog with emailClientOpenPop('u_xyz') but at the same time it should submit the record on the table u_xyz.
