Get Value of Target Field in sys_email table

thisisauniqueus
Giga Expert

Hi

i am trying to get the value of Target field in sys_email tabe in Business Rule (after insert) but every time i access the DisplayValue its gives me empty. Any idea how can i access the value?

or how can i check if target is not empty access the related record in sys_data_source table?

Regards.

24 REPLIES 24


and the code


find_real_file.png


Use getDisplayValue() in the first line


Thanks Abhinay but the result is same


insert a log after first statement and see what it returns to the log


gs.log("Instance from Sys Email "+current.instance.getDisplayValue());


Hi John,



Per our earlier message, change your line



var receivedAttachment = current.instance.getReferenceDisplayValue();



to



var receivedAttachment = current.instance.getDisplayValue();