Hi CQ Experts!
I have one difficulty to remove reference between Parent and Child. There is manually process where you can go / get the parent ID and ---> Modify action go to Child list view / select Child ID ---> select "Remove" and save.
This is manual effort,i would like to do it by clever script. Are there any CQ API available to remove reference link between Parent and Child ?
Are there any ways to remove reference between parent / child ?
Requesting you all to give some input so that i can proceed further
Many thanks in advance
Pinned topic Disassociate child record from Parent / Remove Child reference by API ?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-12-13T11:16:05Z at 2012-12-13T11:16:05Z by Lumart
Lumart 120000GQG687 Posts
Re: Disassociate child record from Parent / Remove Child reference by API ?2012-12-13T11:16:05ZThis is the accepted answer. This is the accepted answer.For reference_list fields, use the DeleteFieldValue method of the $entity object (the value to provide to the method as the second parameter is the unique id of the child).
For reference fields (although this is not a "true" parent-child relationship), just empty the field with a SetFieldValue call.