Public Catalog Item attachment:

Narendra Kota
Mega Sage

Hi,

we made the catalog item and Record producer public on a CMS page and the attachment is not working.

I found some community articles https://community.servicenow.com/community?id=community_question&sys_id=5e9d0f2ddb9cdbc01dcaf3231f96... suggesting the workaround 4 years ago.

How can we make OOB Attachment work for public?,

Thanks in advance.

find_real_file.png

1 ACCEPTED SOLUTION

Hi Narendra,

I did a deep check, it's not possible to grant the attachment management for public users, please see the official answer by ServiceNow:

"Unfortunately this is not supported within the platform. The problem is that the processor AJAXGlideRecord used for the xmlhttp (AJAX) request triggers background code which requires the users to be authenticated. So even if the UI page/macro might be accessible public, the AJAX request used for uploading and storing the attachment requires authentication."

https://community.servicenow.com/community?id=community_question&sys_id=aa7503eddbd8dbc01dcaf3231f96...

Please, mark Correct or hit Helpful if you find my response worthy.

Cheers
Alberto

View solution in original post

5 REPLIES 5

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi Narendra,

maybe as a possible solution, you could try to create a custom Add Attachment button, following the steps described below:

How to add a custom 'Add Attachment' button to a Service Catalog Item

I hope this could help you.

Please, mark Correct or hit Helpful if you find my response worthy.

Cheers
Alberto

Hi Alberto,

Thanks for your response. I already tried adding custom Add Attachment button, I gave public role to this variable as well, but this custom button is working only for logged in users and not the public.

Hi Narendra,

I did a deep check, it's not possible to grant the attachment management for public users, please see the official answer by ServiceNow:

"Unfortunately this is not supported within the platform. The problem is that the processor AJAXGlideRecord used for the xmlhttp (AJAX) request triggers background code which requires the users to be authenticated. So even if the UI page/macro might be accessible public, the AJAX request used for uploading and storing the attachment requires authentication."

https://community.servicenow.com/community?id=community_question&sys_id=aa7503eddbd8dbc01dcaf3231f96...

Please, mark Correct or hit Helpful if you find my response worthy.

Cheers
Alberto

Hi Narendra,

Can you mark my answer as correct? This helps in removing this question from unanswered list and helps users to learn from your thread.

Thanks in advance.

Cheers
Alberto