What is this error called "undefined" or "null"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 10:05 AM
Hi all,
Can anyone tell me why this error is coming, here I am trying to fetch value of "value" field of record from "question_answer" table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 12:15 PM
Hi @Jaspal Singh @OlaN ,
I tried that still I am getting empty nothing, even though there is value.
trying to fetch below record

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:36 PM
Hi,
The fact that you are using gs.print() states that you are running the script in global scope.
And since this thread is in the HRSD forum, I believe that the record you are querying belongs to the HR-scope. So I'm guessing that that is the issue. You cannot access that record from the global scope.
Can you try to switch scope when running the script, and replace gs.print() with gs.info() as I suggested earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 12:31 PM
Hello @Prathamesh Cha1
I was just going through your conversations, it seems interesting.. so to further debug on your issue firstly, I would suggest to query that particular record using sys_id and check whether "value" is getting printed or not.
Please mark my response as both HELPFUL and CORRECT, if it helps.
Regards,
Raghu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 12:37 PM - edited 10-28-2023 12:38 PM
with sys_id its working but my requirement is after submitting record on record producer in esc portal using HR case sys_id, and then variable sys I want to fetch this value to reflet it in notification, in place of table sys_id I will be using current.sys_id to fetch sys id of hr case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2023 12:46 PM
Okay, if it's working when you given sys id means,, then your query might be incorrect, or as your saying it some scope thing then could you have a look on "Cross Scope application" privileges?
Let me know if we can check quickly jump into a call to further check on this,. Happy to help.
Please mark my response as both HELPFUL and CORRECT, if it's helps..
Regards,
Raghu.