How to autopopulate field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:30 AM
I want to autopopulate the field value for when user use that specifice link.
For example. If I provide a user any catalog form link. servicenow.abc.com If I provide this link to sometime. One field value should set automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:50 AM
Hi @Nisha Mishra23 ,
What value you want to set in the new field ? also what do you meant that once I provide the link to a user , does that means that link is used by user and you want to extract some value from that particular URL and populate it in a field?
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:13 AM
Yes I want to populate the field for particular URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:41 PM
Hi @Nisha Mishra23 ,
You can refer to below API GlideURI and use getparam and set methods to set the values.
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:50 AM
Hi @Nisha Mishra23,
Refer to an old thread - https://www.servicenow.com/community/developer-blog/3-ways-to-populate-values-in-servicenow-via-the-...
Another good one to auto-populate a variable in a catalog item - https://www.servicenow.com/community/itsm-forum/fill-catalog-variable-via-url/m-p/2748704
Cheers