What is the service portal equivalent of 'sysparm_item_guid'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 09:55 PM
Hi, everyone.
My use case is as follows. I'm creating a record producer that will generate a HR Case (sn_hr_core_case). The user will be able to add attachments using the standard attachment paper clip. The customer wants me to check (onSubmit) that the total size of all attachments does not exceed 60Mb.
Once I add all my attachments and before clicking submit, I check the attachments table in the platform UI. I can see the entries for my attachments. In all cases the Table name is sn_hr_core_case and the Table sys ID is identical. So I know that is the sys_id of the HR Case that will be created when I submit the form. I've also checked after successfully submitting the form just to be sure.
I know that ServiceNow deprecated sysparm_item_guid for service portal some time back. Would anybody please know what replaced it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 10:18 PM
Hi @byrne_p_kevin ,
Use g_form.getUniqueValue();
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0723775
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 06:37 PM
Sarika,
g_form.getUniqueValue() returns the sys_id of the catalogue item. I need the sys_id of the target record. Thanks for responding.
Regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 05:23 AM
@byrne_p_kevin did you manage to get the sys_id of the target record, I am trying the same and still can't find any way.