The CreatorCon Call for Content is officially open! Get started here.

target table field in sys_email table

abhisingh
Kilo Contributor

Hey guys, i am facing an issue not able to set the value in 'target_table' field of 'sys_email' table from one inbound action.

i choose the target table in my inbound action 'sys_data_source' but it is not reflecting in 'sys_emai' table.

can anyone help me on this........

5 REPLIES 5

nayanawadhiya1
Kilo Sage

Hey Abhi,



Share your code..


Capture1.PNGCapture2.PNG


in first img i am setting the target table field value in second img this field is blank....


When to Run Condition?


Dhruv Chandan
Giga Guru

Hi Abhi,



Try this in the script :



current.target_table = email.body.<Field_name>;



example: current.target_table = email.body.tablename;



//"tablename" this is a field present in the Email's Body of the incoming mail.



or if you doing via GlideQuery



then add



grEmailLog.target_table = "sys_data_source"; //if it is reference field try pushing the sys_id into it instead of text.


grEmailLog.update();




Hoping this helps.



Regards,


Dhruv