Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2020-06-17 09:11 AM
I am trying to get all content of an application and check in attachment exist and if it exist we are trying to delete it.
I do not see any API to delete attachment so the questing is as below:
==> Can i delete the attachment from a content ?
==> What is the API available for it ?
==> In update content API, if i update attachment field value with blank will the attachment associated with it will be deleted ?
2020-06-17 09:20 AM
Samrat, there's isn't per-say an API to delete an attachment.
What you would do is get the list of attachment IDs from the record, determine which attachment ID you no longer need and remove it from the original list of attachment IDs from the record. Then update the record with the updated attachment IDs.
So, for example if you retrieve the contents of a record and it has the following attachment IDs; 1234,5231,3124,6421. You've determined that the file for attachment ID 3214 is no longer needed. You'd remove that ID from the list and update the records attachment field with the following IDs; 1234, 5231, 6421. Then Archer back-end jobs will delete the file corresponding to 3214.
Advisory Consultant
2020-07-29 01:25 PM
If it's the maintenance jobs, they typically run every Sunday morning. Check the SQL Server Agent > Jobs to see if the schedule has changed.
Advisory Consultant
2020-10-06 02:32 PM
Can you share the job name please.
2020-10-06 02:36 PM
Here you go Samrat,
"ArcherLab" would be replaced with the name of your instance.
Advisory Consultant
2020-11-12 02:39 PM
Again would this be also change the History of the attachments right?
2020-11-12 03:07 PM
Varghese are you talking about listing the change in the History Log (field)? If so, no being the History Log field type doesn't track Attachment fields.
Advisory Consultant