How to Make Attachment Mandatory in Record Producer ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 01:01 AM
I created a Record Producer and want to make attachment mandatory when service changes and before submission of the Record Producer.
When I added one file from record producer then I saw it stored that file in attachment table as sn_customerservice_case in table name column instead of sc_cart_item_producer . so i did put query as
getAtt.addQuery('table_name', 'sn_customerservice_case');
Attachment Table Screen shot :
but it's not working.
How can I able to do it , please help me ?
Note : Application Scope : Customer Service
My Script Include Code :
My Client Script Code :
- Labels:
-
Change Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 01:06 AM
There's no need to code for that. You just have to set the attachment variable to mandatory.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 01:17 AM
Hello,
Go to your record producer.
Check the following checkbox.
Please mark the answer correct if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 02:56 AM - edited 10-20-2022 03:00 AM
Hi all,
Already tried it , see
Record pro :
but it's not fetching that attachment .
but it stored in the sys_attachment table.
and this my business rule :
When to run : async > insert
so i tried with oob attachment UI button and script include method .
plz help on this ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 03:10 AM
Hello,
You can write below code in on submit client script and first fetch value of variable because of which you want to make this as mandatory
Regards,
Musab