- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 11:55 PM
Hi everyone,
My requirement is to get sys_id of the field value from cases table to system property . Then I want to get this system property into widget and script include.
Does getValue work on system property .
My field name is "consumer " in cases table .
Thanks in advance
cc:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2022 12:55 AM
Hi Virendra
Try this
var callerCSM = gr1.getValue(consumer_contact.toString());
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2022 12:28 AM
Hi,
You need to use gs.getProperty('property name');
Regards,
Muhammad
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2022 12:32 AM
Hi
You will need to
gs.getProperty("x_care3_carear_csm.consumer");
Remember, this will return a string value.
Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.
Will be helpful for others looking for the similar query.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2022 12:34 AM
Your question is bit confusing, could you please elaborate more.
If you want to get field value sys id via system property then you can store sys_id in system property and access it as gs.getProperty("system property name");
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2022 12:50 AM
Hi
How can get field value sys_id into system property , dynamically . I don't want it to be static .