Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Is this a valid sys ID - c1149291000000000000000000000001 ? This is generated by an AI agent.

shivanshsemwal
Tera Contributor

Is this a valid sys ID to consider - c1149291000000000000000000000001 ?
I have a story - STRY0149291 - to create a new field.
I'm using AI and I got the xml generated from AI agent, for a new field record.
I am able to load and commit that xml into my instance and can see the record as well in dictionary table with above mentioned sys id.
I've verified this sys id via - "gs.info(GlideStringUtil.isEligibleSysID('sys_id'));" and it returns true - that means its valid as per the function.
But just want to check if there is any issue to have so many zeros in a sys id...?
I'm not 100% sure if its fine to continue with a record having this kind of sys id. 
Need some suggestions.

1 REPLY 1

Sandeep Rajput
Tera Patron

@shivanshsemwal If the method GlideStringUtil.isEligibleSysID returns true, you can safely assume it is a valid sys_id. If it were an invalid sys_id, you would have encountered an error while previewing or committing the update set.