08-01-2017 04:44 AM
Dear All,
Got the following problem to solve. The user should be able to copy a set of property values between different documents. My idea is the following:
Have all the codes to do the 1st part and the writing of property values.
How can I read a file stored in the 'My files' directoy and get its content?
Regards,
Zsolt Putnoky
08-01-2017 05:40 AM
The script API provides access to a node's content via the ScriptNode API. The home folder of a user (their "My Files" location) can be retrieved by accessing the property cm:homeFolder of the node representing the user (the person node) - that can be retrieved via the People API and "people" root object.
08-01-2017 05:40 AM
The script API provides access to a node's content via the ScriptNode API. The home folder of a user (their "My Files" location) can be retrieved by accessing the property cm:homeFolder of the node representing the user (the person node) - that can be retrieved via the People API and "people" root object.
08-01-2017 05:59 AM
Managed to open the file and read the content. So far so good. Now got another issue to list all the custom properties. Going ahead slowly
09-21-2020 10:05 AM
Hello,
I have the same problematic but I haven't find the function for read a txt file in ScriptNode API.
Can you help me please ?
Regards
09-21-2020 10:14 AM
Try
var fileContent = document.content;
Explore our Alfresco products with the links below. Use labels to filter content by product module.