record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:16 AM
Hey.
Would appreciate help..
I created a record producer:
I created a caller_id variable that refers to the sys_user (User) table:
My script include:
And then I used the Reference qualifier and calling in my script include when i call the caller_id i get undefined:
Why the script return undefined?
Thank. Shir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:38 AM - edited 12-05-2023 06:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:45 AM
I fixed this code and it still doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:52 AM - edited 12-05-2023 06:52 AM
It still doesn't work it returns me undefined