Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-12-13T11:16:05Z by Lumart
SystemAdmin
SystemAdmin
24948 Posts
ACCEPTED ANSWER

Pinned topic Disassociate child record from Parent / Remove Child reference by API ?

‏2012-12-13T10:14:56Z |
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

MRP
Updated on 2012-12-13T11:16:05Z at 2012-12-13T11:16:05Z by Lumart
  • Lumart
    Lumart
    87 Posts
    ACCEPTED ANSWER

    Re: Disassociate child record from Parent / Remove Child reference by API ?

    ‏2012-12-13T11:16:05Z  in response to SystemAdmin
    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.