11-06-2020 03:55 AM
Hi everyone,
I will need to use the Single Part File Upload for a customer and going through the documentation here everything is very clear.
Nonetheless, when coming to Request 3, I didn't get what was the "KeywordGuid" value? Is it a random value? Or is it linked to the configuration?
Thank you very much and have a nice day 🙂
Denise
11-06-2020 07:15 AM
Hello Denise,
The KeywordGuid is a randomly generated value. We can retrieve the KeywordGuid for the Document Type by performing a GET request to /document-types/documentTypeId/default-keywords . From the response, we'll copy the KeywordGuid and use that in document archival.
More information on performing this request can be found in the article, "Gets default keywords for a new document" located in the SDK here: https://sdk.onbase.com/rest/docs.html?product=OnBase&release=FoundationEP4&spec=document#operation/G... .
11-06-2020 07:15 AM
Hello Denise,
The KeywordGuid is a randomly generated value. We can retrieve the KeywordGuid for the Document Type by performing a GET request to /document-types/documentTypeId/default-keywords . From the response, we'll copy the KeywordGuid and use that in document archival.
More information on performing this request can be found in the article, "Gets default keywords for a new document" located in the SDK here: https://sdk.onbase.com/rest/docs.html?product=OnBase&release=FoundationEP4&spec=document#operation/G... .
11-09-2020 02:23 AM
Thank you Daniel! Have a nice week!
11-10-2020 01:03 PM
Were you able to get this to work using the JSON you show above? I found that the documentation on the JSON format for this call is different between 2 different link sources and once I changed the JSON it got further, however now I get a 403 Forbidden.
here's the 2 documentation links I used where the JSON format conflicts:
vs
This is the format of the JSON I had to switch to using linkB above, however I omitted typeGroupId:
{
"documentTypeId": "string",
"fileTypeId": "string",
"storeAsNew": true,
"comment": "string",
"documentDate": "2018-08-21T00:00:00.000Z",
"uploads": [
{
"id": "string"
}
],
"keywordCollection": {
"keywordGuid": "string",
"items": [
{
"typeGroupId": "string",
"keywords": [
{
"typeId": "string",
"values": [
{
"value": "string"
}
]
}
]
}
]
}
}
Thanks, Diane
11-09-2020 03:53 AM
Hi!
On almost the same topic, I keep getting the status "400 Bad Request" when executing the last step of the document upload ("Archive document with upload and metadata": https://sdk.onbase.com/rest/OnBase/FoundationEP3/document/programmers-guide/upload-archive-interacti...).
I just copied the code and changed the parts that needed to be changed.
It's a post query to this link with the right authorization token: https://{localhost}/ApiServer/onbase/core/documents
The body of the error:
The body of the request (the document type doesn't have any keywords to be sure nothing was wrong in the keywords):
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.