- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2023 10:48 AM
Hello,
There is a Catalog Item which has few fields. Some of the fields are to upload attachments. How to upload files into these variables via ATF?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2023 10:44 PM
Hi @tasankuluulu,
Yes. Follow the below steps.
1) Use the Record Query test steps. Table will be sys_attachment and add the attachment sys_id for query.
2) Open a catalog item
3) Set the variable values and for attachment type variable use the same sys_id.
4) Add your next steps or submit form.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:18 AM
Hello ,did you able to add attachment sys_id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:07 AM
Hi,
Thanks for sharing the solution. But if we don't have the attachment upload option as a variable, only a link is provided in the catalog item named "Add attachments" . In that case how to add attachment with the option mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 10:43 AM
Thank you for sharing your solution. unfortunately it is not working for me. First, why is the record query step needed? just to be sure we are grabbing the correct id? and second, I am using this in a record producer but when I set the value the screen shows 'invalid value' even thought the record query step successfully found the attachment. Any ideas on why it is not working for me?
thanks,
Maria t.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 12:21 AM
We faced the same issue. For us it was a permission issue. The dummy attachment we uploaded to sys_attachment was against a particular table which the impersonated user in the ATF did not have access to. There's an OOTB ACL that grants read access to sys_attachment records if the table_name field is empty, so we decided to make this blank on the dummy sys_attachment record which allowed things to work. Just keep in mind that this will make the attachment available to all users (if you have explicit roles plugin turned on, it'd make it available to all snc_internal users).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:50 AM
@Nick Parsons If possible, can you please share the test steps here which you created to handle the Upload/Add attachments functionality.
Thanks in advance.