- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 01:26 AM - edited 04-16-2024 09:16 PM
Hi All,
I am having an attachment in record producer in scoped application. It should not allow more than 1 attachment on submit. Below is the code. But the rowcount is always showing as 0. Please help here
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 01:54 AM
Hi Renu,
Check this blog form Ankur that shows how to validate Attachments on catalog items, same would work for Record producer as well.
Verify Mandatory Attachments Count on Catalog Item - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 01:54 AM
Hi Renu,
Check this blog form Ankur that shows how to validate Attachments on catalog items, same would work for Record producer as well.
Verify Mandatory Attachments Count on Catalog Item - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 02:14 AM
I tried now, but it is not working in my case. Even though adding 2 attachments resulting false.
Adding attachments over here and not the oob icon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 10:07 PM
i am having a custom attachment drag and dropp in record producer . I want it to allow only 1 attachment more than 1 it shouldnt allow. Above is the script can u pls guide what im missing here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 11:46 PM
GlideRecord won't work in client side.
the link which Anurag has shared which talks about how to validate should work fine.
Did you debug?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader