Adding an Attachment for a Catalog Item on the Service Portal

jscott
Kilo Contributor

I am creating an ATF test script for a Service Catalog item on the Service Portal. I have set the field values but before I can order the item, an attachment is required to be added to the catalog item request.

When I selected Add Attachments to Existing Record it says the specified record  must exist prior to this step running. If adding attachments to a form that has not been submitted yet, use "Add Attachments to Form" instead.

I tried using the Add Attachments to Form step. It says for this step you must have already opened a form using either the "Open a New Form" or "Open an Existing Record". I am not opening a new or existing form. My steps are as follow:

1. Impersonate a user

2. Open a Catalog Item(SP)

3. Set Variable Values (SP)

I need to add an attachment before the Order a Catalog Item (SP) step can run.The test will fail without the attachment. When I try to use the  Add Attachments to Form step I am able to select a file to attach but it does not allow me to add it to the step. If I click the checkbox next to the file name the 'Remove' button is activated. See attachment.

Thanks for any help that can be provided.

10 REPLIES 10

jscott
Kilo Contributor

Found another user asking the same question who created an idea and voted for the idea. This is the link.

https://community.servicenow.com/community?id=view_idea&sysparm_idea_id=67a253b0db394c10d82ffb243996...

Thank you for your help.