Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

How to update cmis:name document??

$
0
0

Hi!

I want to change cmis:name of a document, because before his name was 'PRUEBAS' and now I want that his name will be 'PRUEBAS_MODIFIED'.

I use Apache Chmistry PHP Library (phpclient) but...I can't change the cmis:name...

My code

$test  =new CMISService($repo_url, $repo_username, $repo_password);
$id ='ddb6eabd-a862-4e6b-9251-32b6e73300d7';//existing objectId of the document that his name now is PRUEBAS. 
$obj = $test->updateProperties($id, array('cmis:name'=>'PRUEBAS_MODIFIED')); 
var_dump($cmis_repo->getObject($obj->id));// I see that cmis:name continue PRUEBAS instead of PRUEBAS_MODIFIED ¿why?
5.1.x


Viewing all articles
Browse latest Browse all 252

Trending Articles