Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Allowing attachments

gregm3
Giga Contributor

Here is the scenario.  I want to allow people to attach documents to product models WITHOUT being able to write (update) the records.  Think of folk whose job is to find technical documents and attach to the model.

 

It appears the default behavior requires write to the individual record.

 

I have tried creating ACL's on sys_attachment for create and write, but no go.  When dropping a file on the open record, I get the alert 'File attachments not allowed'.

 

Anyone know how to accomplish this magic?

Thanks.

7 REPLIES 7

sushantmalsure
Mega Sage

I believe this needs to be handled using ACL on sys_attachment, user should have access of create() , write() and read().

Now based on your explanation this seems to be tried options so far but when you say alert of 'file attachments not allowed' is something creates a doubt. Do you see attachment icon on record? can you share a screenshot of this alert when user is trying to do so ?

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

sushantmalsure
Mega Sage

ahha I get it, you are trying with file dropping option.

Something is already documented for incident by ServiceNow in KB

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718509

 

worth checking if you have such client script with g_form.disableAttachments() on model table.

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

Thanks.  Will look into it.

 ..

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure