Hello Michael ,
I found the following example on the internet to inject content into a folder via the CMIS API, but it's not working. I tried changing the link to the one you gave me before, but it still doesn't work. Do you have any idea on how to add a document to a folder?
Thank you for your time and assistance.
Lastly an example of adding a document to a specific case:
Again you must use the specific the GUID of the case, which in this example is 'F1C1EEB9-AC69-C853-87A9-5BF26D900000'.
> curl -u user:password -X POST http:// server:port/cmid_base_url/tos_symbolic_name/children?id=F1C1EEB9-AC69-C853-87A9-5BF26D900000^&ContentType=application/pdf -d @example.pdf
------------------------------
El Mehdi ES-SAFI
------------------------------
Original Message:
Sent: Fri February 23, 2024 03:32 AM
From: Michael Kirchner
Subject: find all the cases based on a case type
Hi El Mehdi,
I think the URL may no longer be correct. In general, your URL should look like this:
GET https://<server>:<port>/<cmis_base_url>/resources/<tos_symbolic_name>/Query?q=SELECT%20name%20FROM%20cmis%3Afolder%20WHERE%20cmis%3AobjectTypeId%3D'<your_case_type_symbolic_name'
You should be able to find your CMIS URL by looking into your deployment (e.g. WAS admin console) and you should validate that you can access the CMIS root page in your browser
https://<server>:<port>/<cmis_base_url>/index.jsp
with the user you want to call the CMIS REST API.
Does that help?
Best regards
------------------------------
Michael Kirchner
Senior Partner Technical Specialist
IBM Technology
Germany
Original Message:
Sent: Thu February 22, 2024 02:56 PM
From: El Mehdi ES-SAFI
Subject: find all the cases based on a case type
Hello,
Please can someone help me to use this exemple to find all the cases based on a case type :
An example of a query to find all the cases based on a case type:
GET http:// server:port/openfncmis/atom11/CMTOS/query?q=SELECT%20name%20FROM%20cmis%3Afolder%20WHERE%20cmis%3AobjectTypeId='XY_CaseType'
------------------------------
El Mehdi ES-SAFI
------------------------------