locked
How to copy multi values taxonomy field between lists? RRS feed

  • Question

  • I have two lists and I want to copy the taxonomy field values from one to the other.

    Both fields accept multi-values.

    - sourceList, sourceField

    - destinationList, destinationField

    I want to have something like :

    destinationList.destinationField.Values = destinationList.destinationField.Values + sourceList.sourceField.Values

    Thanks.


    OvidiuG
    Thursday, July 28, 2011 9:16 AM

Answers

  • Ok, I succeed into copying. Fairly simple.

    - Get sourceField collection as collSource

    - Get destinationField collection as collDestination

    - foreach term in collSource add to collDestination

    If there is a need for an example, just ask for. I am here to ask / provide help.


    OvidiuG
    • Marked as answer by OvidiuG Thursday, July 28, 2011 11:13 AM
    Thursday, July 28, 2011 11:13 AM