Alternative to attachment variable

mansigoel
Tera Contributor

Hello All,

 


i am trying to have multiple attachments to be attached in the catalog form. Since attachment variable can have a single attachment attached add a single time, so I want something that is alternative to that variable and that variable is just visible only sometimes so we can’t have the paper clip option as well.

Can you please suggest anything which can be an alternate solution for this.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@mansigoel 

Why not use OOTB paper-clip icon and stick to OOTB feature?

If not that then you can use MRVS and add attachment type variable in it.

Note: Out of the box you cannot add attachment type variable within MRVS but you can disable this business rule, add the variable to MRVS and then again activate that business rule. Remember to capture the deactivation & activation of business rule in default update set

Ensure you capture that business rule in default update set and don't migrate it to next instance

1) Disable the business rule "Restrict types for table variable set"

2) Then create attachment type variable within MRVS and you can make it mandatory at variable config level if you want
3) then activate the business rule again

AnkurBawiskar_0-1751303298769.png

 

AnkurBawiskar_1-1751303298765.png

 

 

 

Output: MRVS shows Attachment type variable

AnkurBawiskar_2-1751303298768.png

 

 

AnkurBawiskar_3-1751303298770.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

4 REPLIES 4

Chaitanya ILCR
Kilo Patron

Hi @mansigoel ,

you can use an MVRS in that case

add the attachment variable to the mvrs and use it

 

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Sabrina Ethridg
Tera Guru

Attachment variables aren't supported in MRVS.   I would recommend a client script to hide/show the attachment paperclip if they need to add an unknown quantity of attachments a under certain conditions.

Hi @mansigoel , @Sabrina Ethridg 

 

you can run a background script with setworkflow false and insert the attachment variable into MVRS

or deactivate the BR as suggested by @Ankur Bawiskar 

ChaitanyaILCR_0-1751303620594.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Ankur Bawiskar
Tera Patron
Tera Patron

@mansigoel 

Why not use OOTB paper-clip icon and stick to OOTB feature?

If not that then you can use MRVS and add attachment type variable in it.

Note: Out of the box you cannot add attachment type variable within MRVS but you can disable this business rule, add the variable to MRVS and then again activate that business rule. Remember to capture the deactivation & activation of business rule in default update set

Ensure you capture that business rule in default update set and don't migrate it to next instance

1) Disable the business rule "Restrict types for table variable set"

2) Then create attachment type variable within MRVS and you can make it mandatory at variable config level if you want
3) then activate the business rule again

AnkurBawiskar_0-1751303298769.png

 

AnkurBawiskar_1-1751303298765.png

 

 

 

Output: MRVS shows Attachment type variable

AnkurBawiskar_2-1751303298768.png

 

 

AnkurBawiskar_3-1751303298770.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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