Adding an Attachment for a Catalog Item on the Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 06:53 AM
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.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 10:11 AM
Adding attachments to catalog item or record producer is not currently supported in NewYork & Orlando as well.
I had confirmed this earlier with ServiceNow by raising a HI ticket and this cannot be achieved.
So I had to drop the ATF Test for those catalog items or record producer.
You cannot use "Add Attachments to Form" step as it is for table form and not catalog item/record producer.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 11:31 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 05:15 AM
Thanks,
Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 09:59 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader