Password protected validation on attachment in Fulfiller form

krishnakant
Tera Contributor

Hi folks,

 

Hope you are doing great.

 

Stucked with differentiating password protected file on Fulfiller form. Same file when attached on portal form then at that time it is working as expected. Please have a look on below code and help us to work if for fulfiller form as well by doing modification on code.

 

Code -

 

var gr = new GlideRecord('sys_attachment'); gr.addEncodedQuery('content_typeLIKEprotected^sys_id=4ab4467c97cab190f6a8307e6253af54');

gr.query();

if (gr.next()) {

gs.print("encrypted file");

} else {

gs.print("not encrypted file");

}

 

When on portal form encrypted file attached then in content type is updating with - "application/x-tika-ooxml-protected"

But when on fulfiller form encrypted file attached then in content type is updating with - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

 

Need help on this.

 

Thanks,

Krishnakant

0 REPLIES 0