How to use getSCAttachmentCount in System UI -UI Script GlobalCatalogItemFunctions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2020 09:54 AM
I'm using the getSCAttachmentCount function in GlobalCatalogItemFunctions to check to see if an item was attached to my request before allowing the request to be submitted. I get the error "Failed to load resource: the server responded with a status of 404 - Not Found" when I get to the point of calling the function. If I go to System UI | UI Scripts in the explorer window, I can find the function, so I know it exists.
When I got to Service Portal | Portals and select my portal, under Theme | JS Includes, I see GlobalCatalogItemFunctions.
What more do I need to do to get it to work?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2020 05:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2020 02:02 PM
This option doesnt seem to work for me. Can anyone help ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 07:25 AM
Michael:
Thanks for your reply. It fixed the basic problem. One extra wrinkle that I failed to mention is that there must be 2 attachment. Your solution is perfect if only 1 requirement is needed. I didn't see a way to specify the number of required attachments. Is there one with your method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 01:07 PM
It turns out the fix is simple. Open up the GlobalCatalogItemFunctions UI Script. Just below the name on the left side of the screen is the attribute UI Type. On our instance, it was set to "Desktop". It needed to be changed to "Mobile / Service Portal". Once the change was made, the problem went away.