record producer

Shir Sharvit
Tera Contributor

Hey.
Would appreciate help..
I created a record producer:

ShirSharvit_0-1701785256799.png

 

I created a caller_id variable that refers to the sys_user (User) table:

ShirSharvit_1-1701785316121.png

 

My script include:

ShirSharvit_3-1701785799917.png

 

And then I used the Reference qualifier and calling in my script include when i call the caller_id i get undefined:

ShirSharvit_2-1701785520385.png

 

 

Why the script return undefined?

 

Thank. Shir

 

 

 

10 REPLIES 10

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Shir Sharvit ,

 

In ur script include at line 6 u dont have to dot walk for sys_id. Caller Id itself is a reference field which will by default contain sys id of the record. so just replace line 6 with

 

 

var caller = caller_id;

 

Also can u check by putting some log on line 11 whether it is entering in if condition or not

 

 

Thanks,

Danish

 

I fixed this code and it still doesn't work

ShirSharvit_0-1701787492318.png

 

Can u put some log after line 9 to check if it is going inside if loop? @Shir Sharvit 

 

Thanks,

Danish

 

It still doesn't work it returns me undefined

ShirSharvit_1-1701787966967.png

 

 

ShirSharvit_0-1701787910953.png