How to only mandatory Attachment .csr file

Pankaj15
Tera Contributor

Hi All,

 I am using Catalog: ABC

Variable: Please Attached CSR

Type - Attachment

Requirement: How to only mandatory Attachment .csr file

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hello,

You can simply set that attachment field to be mandatory in the variable settings.

Then add this attribute to the variable as well:

allowed_extensions=csr

This ensures only that file extension is allowed.

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/...

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

hi Allen,

 I am using below line.

find_real_file.png

 

This line is strict the Other extension file. but this line not allowed if am using .csr file

Please Help me what is the next steps

Hi,

My apologies, I'm unable to understand your reply. Can you try saying it again?

Are you saying it's restricting other extensions, but it's not working for .csr file types?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Variable: Please Attached CSR

Type - Attachment

 

Accept only .csr file and not accept .pdf,.test etc.