Changing ecm name in automation chain

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!

0 votes

3 answers

1270 views

ANSWER



Hi,

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

2 votes



Correct. Name would correspond to the Title if it doesn't contain spaces, special characters etc…
10/14/2019


Hello,

You should try with ecm:path maybe.

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

1 votes