How to copy attachments based on variables value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 01:17 AM - edited 01-30-2024 01:28 AM
Hi Community,
I have few variables on the sc task table where i have one variable which is of type attachment. I want to copy that attachment into the another variable's values records. For eg. oat certificate is of type of attachment, whatever attachment is there i want to copy it into the server names variable records which is a list collector so suppose i have selected 3 servers into it so that oat certificate attachment should copy into these 3 server records.
Second requirement is, all the attachments which is there for all attachment type variables except the oat certificate. All should copy into the application name variable which is a reference field and the reference table is business application. So, suppose xyz business app i have selected in this application name field, so all the attachments which are there on sc task table for all attachment type variables except the oat certificate attachment variable. It should copy all these attachments into xyz business app record which is selected in the application name field.
Here is the code for the same.
It is an after BR on sc task table for an specific catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 01:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 01:29 AM
Where is the suggested solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 02:01 AM
Apologies forgot to add it.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 07:44 PM
This is not helpful for my scenario.
Any other suggestions for this?