David Stutter
Tera Guru

I made something similar.



First I created an own UI Page which contains the Email Preview: <g:inline template="notification_display.xml"/>.


With buttons "Send"/"Cancel" which will trigger the event for sending the email.


Simple Ajax call for gs.eventQueue(..).



The UI Action Button opens the UI Page and set the following preferences for the email preview:


.setPreference('sysparm_notification_id', [notification_sys_id]);


.setPreference('sysparm_target_id', [target_sys_id] );


Hi David,



Can you please share the details of your UI Page?


Hi Edgar,

Did you ever found a solution for this. Please let me know since i'm also facing the same problem.

 

Thanks,

Niranjan.

Hi dastu.

 

I have tried what you mentioned above bbut it isn't taking the target sys_id of the record. It  is randamly taking the record and the gives the information of that record. Can you please let me know how to pass the record to the notification preview so that it grabs the information from that record and shows.

 

Thanks,

Niranjan.

Hi,

 

I have a similar requirement. Were you able to figure out how to pass the current record to the notification preview?

 

Thanks,

Nayanthara