- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 02:40 AM
Hi looking for some assistance please - Is this possible?:
I have a Cat Item with 2x fields on it
1) Assets - List Collector variable - Referencing alm_asset
2) Description - Multi Line variable
I have created the following Script Include:
On the Cat Item I have created the following Catalog Client Script
Basically what this doing when you select an Asset on the cat item it is pulling back the display name and serial number to the Disposals field:
Is there a way I can edit my scripts so that if multiple assets are selected in the List Collector the display name and serial number will be displayed for each on a new line?
Any assistance would be most appreciated. Happy to share further information if required
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 05:02 AM
Hi,
Yes I am looking at it right now and this is exactly what I was after. I updated the code slightly and replaced the comma with \n so each new asset returns on a new line.
Thank you so much for looking into this for me and your full support through to resolution.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 03:47 AM
Instance: https://dev65518.service-now.com
Username: shweta
Password: supp0rtm3
Link to form: https://dev65518.service-now.com/sp?id=sc_cat_item&sys_id=66e54a55db0223005d1e7a6139961961
Script include: getAssetDetails
Client Script is within the testing cat item
Let me know if you any issues accessing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 04:59 AM
Hi,
It's working now you can check it. The above code was also correct. The above code was working fine in backend but in portal it's not working. beacause some of the methods are not supported by portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 05:02 AM
Hi,
Yes I am looking at it right now and this is exactly what I was after. I updated the code slightly and replaced the comma with \n so each new asset returns on a new line.
Thank you so much for looking into this for me and your full support through to resolution.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 05:03 AM
Can you mark my answer as correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 07:52 AM
Hi Shweta,
I was wondering if you could help me with an extension to this configuration please?
So I have added a custom reference field on the alm_asset table called Disposal request line (u_disposal_request_line)
What I would like to do is when the request item is submitted the current.sys_id of the requested item is written to each asset listed in the list collector (to the u_disposal_request_line field which is located within the Disposals tab)
I am trying to do this via workflow DB-Disposals
I have set everything up on the personal instance if you can take a look that would be great?
Can you help with this?