What is the service portal equivalent of 'sysparm_item_guid'?

byrne_p_kevin
Tera Contributor

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?

3 REPLIES 3

Sarika S Nair1
Kilo Sage

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

ChandanKuma
Tera Contributor

@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.