How to add attachment on the HR case using catalog attachment variable type?

Sneha_Krishna1
Tera Contributor

Hi,

Hope you are doing well.

I have an 'attachment' type variable in my record producer. When the user uploads any attachment, I want the attachment to get saved in the record created. But instead, it is hiding it.

I can see the entry created in sys_attachment but not on case,

How can I remove ZZ_YY before copying. I written this business rule 

Async - insert. it's not working. can you help?

 

Sneha_Krishna1_0-1694526754824.png

 

 

If I remove this zz_yy from sys_attachment manually from the table then it's adding the attachment on the case.

Sneha_Krishna1_1-1694526754823.png

 

Thanks

@Ankur Bawiskar 

23 REPLIES 23

@Ankur Bawiskar 

I have given business rule as Async insert.

It's not working. Still adding zz_yy convention

@Sneha_Krishna1 

The logic in BR should work fine.

Did you check in native form header? the file is present or not?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

Yeah I've checked in native as well. File is not present there. 

@Sneha_Krishna1 

the same logic and script has worked in past for me as well.

Did you try adding gs.info() and check in BR?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

I've have changed order of the business rule now it's working fine.

Thanks for your help.