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
When the application is deployed as a SaaS application using the code above, tenants automatically onboard a repository upon subscription.
318
319
- When the application is deployed as a SaaS application with above code, tenants on subscribing the SaaS application gets onboarded automatically.
319
320
321
+
## Support for Custom Properties
322
+
323
+
Custom properties are supported via the usage of CMIS secondary type properties. Follow the below steps to add and use custom properties.
324
+
325
+
1. If the repository does not contain secondary types and properties, create CMIS secondary types and properties using the [Create Secondary Type API](https://api.sap.com/api/CreateSecondaryTypeApi/overview). The property definition must contain the following section for the CAP plugin to process the property.
326
+
327
+
```json
328
+
"mcm:miscellaneous": {
329
+
"isPartOfTable": "true"
330
+
}
331
+
```
332
+
333
+
With this, the secondary type and properties definition will be as per the sample given below
334
+
335
+
```json
336
+
{
337
+
"id": "Working:DocumentInfo",
338
+
"displayName": "Document Info",
339
+
"baseId": "cmis:secondary",
340
+
"parentId": "cmis:secondary",
341
+
...
342
+
},
343
+
"propertyDefinitions": {
344
+
"Working:DocumentInfoRecord": {
345
+
"id": "Working:DocumentInfoRecord",
346
+
"displayName": "Document Info Record",
347
+
...
348
+
"mcm:miscellaneous": { <-- Required section in the property definition
349
+
"isPartOfTable": "true"
350
+
}
351
+
}
352
+
}
353
+
}
354
+
```
355
+
356
+
2. Using secondary properties in CAP Application.
357
+
- Extend the `Attachments` aspect with the secondary properties in the previously created _attachment-extension.cds_ file.
358
+
- Annotate the secondary properties with `@SDM.Attachments.AdditionalProperty`.
359
+
- If the property id contains a `:`, replace it with a triple underscore `___`.
360
+
361
+
Refer the following example from a sample Bookshop app:
> SDM supports secondary properties with data types `String`, `Boolean`, `Decimal`, `Integer` and `DateTime`.
372
+
373
+
320
374
## Known Restrictions
321
375
322
376
- Repository : This plugin does not support the use of versioned repositories.
323
377
- File size : Attachments are limited to a maximum size of 700 MB. If the repository is [onboarded](https://help.sap.com/docs/document-management-service/sap-document-management-service/internal-repository?version=Cloud&locale=en-US) with virus scan enabled for all files, attachments are limited to a maximum size of 400 MB.
378
+
- Datatypes for custom properties : Custom properties are supported for the following data types `String`, `Boolean`, `Decimal`, `Integer` and `DateTime`.
0 commit comments