Skip to content

Conversation

JonSandoval
Copy link
Contributor

Code Description

Client Callable GlideAjax script include to return one of the Following based on passed user's sys_id:

-Single Asset for User

-Single Asset for User with Model Category filtering

-All Assets for User

Script queries the "alm_hardware" table. Intended to be called from a client script/catalog client script, one use case would be to populate a users asset on a catalog item form.

Files Included

New folder "Return Asset(s) for User" under "GlideAjax"
Script: "FindUserAsset.js"
Readme file: "readme.md"

Notes

Opening a new pull request as my pull request form yesterday did not include a readme.md

@SapphicFire SapphicFire self-assigned this Oct 4, 2023
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done, thanks for contributing. Would suggest supporting providing other details as parameters for functions, such as getAllAssets, just as future food for thought

@SapphicFire SapphicFire merged commit f8f070f into ServiceNowDevProgram:main Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants