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
I am working on an SAP CAP entity using the Attachments module from @cap-js/sdm. Here is my entity definition:
using {Attachments} from '@cap-js/sdm';
entity Request : managed {
key ID : String;
documents : Composition of many Attachments;
}
I created a non-versioned repository using the standard DMS API and added the following configuration in the cds.requires section of the package.json file:
"sdm": {
"settings": {
"repositoryId":
}
}
When I make a POST request to this entity, for example:
I am working on an SAP CAP entity using the Attachments module from @cap-js/sdm. Here is my entity definition:
using {Attachments} from '@cap-js/sdm';
entity Request : managed {
key ID : String;
documents : Composition of many Attachments;
}
I created a non-versioned repository using the standard DMS API and added the following configuration in the cds.requires section of the package.json file:
"sdm": {
"settings": {
"repositoryId":
}
}
When I make a POST request to this entity, for example:
{
ID: "I001",
documents: [
{
"filename": "data.pdf",
"content": "JSdfsf=" // base64
}
]
}
the content and filename are stored directly in HANA Cloud, but they are not stored in the DMS repository.
I am facing two issues:
Should I manually delete the content stored in the HANA table?
What could be the reason why the data is not being stored in the DMS?
The text was updated successfully, but these errors were encountered: