- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 12:06 AM
Follow up below steps to reproduce the issue,
1. Add a custom field of type File Attachment
for example, u_attachment_test
2. Add the field name to sys_properties record with name com.snc.change_request.copy.attributes
3. Open a change ticket, add a new attachment for the field, you can see the options [Update] [Delete].
4. Click Copy Change from form context menu, check the field, the attachment is copied, but no options [Update] [Delete] available anymore.
The expectation is to be able to see the 2 options and the 2 options works.
Do you know how to achieve this?
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 04:37 AM - edited 01-29-2023 04:37 AM
Hi @Tracy Li Gao ,
When using the "Copy Change" feature for fields of type "File Attachment," the "Update" and "Delete" options will not be available. This is because "Copy Change" creates a new version of the field and its contents, rather than modifying the existing field. Therefore, the original field and its attachments will remain unchanged and cannot be updated or deleted.
When you add a custom field of type "File Attachment" (for example, "u_attachment_test") and add the field name to the sys_properties record with the name "com.snc.change_request.copy.attributes," you are indicating that the field should be included in the "Copy Change" process.
This means that when a user selects the "Copy Change" option from the form context menu, the contents of the "u_attachment_test" field will be copied to the new change request. However, the attachments themselves will not be updated or deleted from the previous change request, and the options [Update] [Delete] will not be available for the copied attachments.
Workaround: If you want to retain the ability to update and delete attachments on the change request form, it's possible to use a related list of attachments on the change request form and use to manage the attachments.
Regards,
Shravan
Shravan
Please mark this as helpful and correct answer, if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 04:37 AM - edited 01-29-2023 04:37 AM
Hi @Tracy Li Gao ,
When using the "Copy Change" feature for fields of type "File Attachment," the "Update" and "Delete" options will not be available. This is because "Copy Change" creates a new version of the field and its contents, rather than modifying the existing field. Therefore, the original field and its attachments will remain unchanged and cannot be updated or deleted.
When you add a custom field of type "File Attachment" (for example, "u_attachment_test") and add the field name to the sys_properties record with the name "com.snc.change_request.copy.attributes," you are indicating that the field should be included in the "Copy Change" process.
This means that when a user selects the "Copy Change" option from the form context menu, the contents of the "u_attachment_test" field will be copied to the new change request. However, the attachments themselves will not be updated or deleted from the previous change request, and the options [Update] [Delete] will not be available for the copied attachments.
Workaround: If you want to retain the ability to update and delete attachments on the change request form, it's possible to use a related list of attachments on the change request form and use to manage the attachments.
Regards,
Shravan
Shravan
Please mark this as helpful and correct answer, if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:13 PM
There is one issue when I want to use both fields of type "File Attachment" and related list "Attachments" together.
1. If I do not add any attachments for fields of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket do copy attachments to related list "Attachments" successfully.
2. If I add any attachments for a field of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket failed to copy attachment to related list "Attachments". No attachment can be found in related list "Attachments".
Is this a defect? Any workaround for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:12 PM
There is one issue when I want to use both fields of type "File Attachment" and related list "Attachments" together.
1. If I do not add any attachments for fields of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket do copy attachments to related list "Attachments" successfully.
2. If I add any attachments for a field of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket failed to copy attachment to related list "Attachments". No attachment can be found in related list "Attachments".
Is this a defect? Any workaround for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 11:08 PM
Follow up the new issue in a new article:
UI action Copy Change: Related list Attachments fa... - ServiceNow Community