Help updating metadata coming from parent folder via cascade policy (Node SDK)
Hi, I am using the Node SDK and having some issues updating meta data on the children folders of parent folders with a metadata cascade policy. Currently I am using client.folders,addMetadata which does add the correct values to my folder however it overwrites it and I lose the data coming from the parent folders. I tried using client.folders.updateMetadata however I kept receiving errors when doing so saying things like "tuple_already_exists". I was hoping someone could show me the right syntax to get this to work. Anything and everything helps, Thanks!
-
Are you still having trouble with this? If so, can you please share a code snippet?
We usually only see this error if metadata for a template is already present and a request to add metadata is made. This error can be handled with a try/catch. When found, a request to update the existing metadata should then be made, which it sounds like you tried.
Please sign in to leave a comment.
Comments
1 comment