How to Make Attachment Mandatory in Record Producer ?

BlackCoder16
Tera Contributor

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 :

 

SUBHASHIS1_3-1666252750252.png

 

 

but it's not working.

 

How can I able to do it , please help me ?

 

 

Note : Application Scope : Customer Service

 

 

 

My Script Include Code :

 

SUBHASHIS1_0-1666251980452.png

 

My Client Script Code :

 

SUBHASHIS1_2-1666252300515.png

 

 

 

 

 

 

 

 

 

 

 

7 REPLIES 7

Hi Musab ,

 

Thanks for replay.

 

i have 1 doubt , what is isolated script why he marked as false.

Check this out

https://www.servicenow.com/community/developer-blog/isolate-script-in-london/ba-p/2275821

Please hit like and mark my response as correct if that helps
Regards,
Musab

sanket16
Giga Guru

Hi @BlackCoder16 ,

On record producer,you can check the "mantadory attachment" in portal settings.

sanket16_0-1666266475731.png

 

Thanks,
Sanket