cancel
Showing results for 
Search instead for 
Did you mean: 

Changing ecm name in automation chain

Matthew_Roy
Champ on-the-rise
Champ on-the-rise

Hi,

I was wondering how you change a document name from an automation chain? I am trying the following, but running into an error:

- Document.SetProperty:
    xpath: "ecm:name"
    value: "testNewDocName"

When this chain executes, I am met with the following error: org.nuxeo.ecm.core.api.model.PropertyNotFoundException: Failed to invoke operation Document.SetProperty, No such schema, ecm:name

I also tried using 'system:name' as the schema and was met with the same error.

Any help would be appreciated, thanks!

1 ACCEPTED ANSWER

sonia-c
Champ on-the-rise
Champ on-the-rise

Hi,

I think that you should use "dc:title" instead of "ecm:name".

View answer in original post

4 REPLIES 4

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

You should try with ecm:path maybe.

To my knowledge, we don't expose the name property.

sonia-c
Champ on-the-rise
Champ on-the-rise

Hi,

I think that you should use "dc:title" instead of "ecm:name".

Correct. Name would correspond to the Title if it doesn't contain spaces, special characters etc...