You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-23Lines changed: 30 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -517,31 +517,38 @@ request =
517
517
518
518
## Support for copy attachments
519
519
520
-
This plugin provides helper method to copy attachments from one entity to another. Copy attachments operation can also be triggered using OData API call.
520
+
This plugin provides capability to copy attachments from one entity to another. This capability will copy attachments metadata on CAP as well as actual content on the SAP Document Management service repository. This feature can be used in following two ways.
521
521
522
+
1.**A helper method to copy attachments from one entity to another**
523
+
524
+
The `AttachmentService` instance can be used to call `copyAttachments` method. This method expects an object of `CopyAttachmentInput` which requires new entity's Id (`up__Id`), the `attachments facet name` and the `list of objectIds` corresponding to attachments that are to be copied.
525
+
526
+
Example usage:
527
+
```java
528
+
String up__ID ="123";
529
+
List<String> objectIds = ["abc", "xyz"];
530
+
String facet ="AdminService.Books.attachments"// Target facet. This can be usually obtained from context.getTarget().getQualifiedName()
0 commit comments