AnsweredAssumed Answered

How to update node's secondary children

Question asked by atef-zayati on Feb 2, 2018
Latest reply on Feb 5, 2018 by gavincornwell

Hello Alfresco Community,

 

I'm using alfresco-client-sdk (developed by Jean Marie Pascal and Gavin Cornwell). I'm wondering how to update node's secondaryChildren.

NodesAPI's createNodeCall method accepts a NodeBodyCreate object. NodeBodyCreate object could be instantiated with a List of ChildAssociationBody as secondaryChildren parameter.

However, NodeBodyUpdate object in updateNodeCall method doesn't have a secondaryChildren field.

One approach I considered is to update secondary children with additions (createSecondaryChildAssocationCall) and deletions (deleteSecondaryChildAssocationCall) resulting in an overhead due to several REST calls.

 

Regards,

Atef ZAYATI

Outcomes