Question & Answer
Question
How can one copy the value of a single-value property to a multi-value property using VBScript inside an IBM FileNet Enterprise Manager (FEM) search?
Cause
Samples on VBScript are limited in our API documentation.
Answer
Use the following VBScript while running search in the FEM to query for objects to update. This retrieves the single-value property and stores it into the collection for the multi-value property.
Public Sub OnCustomProcess (CEObject)
Dim strVal
strVal = CEObject.properties.item("singlevaluePropertyName").value
CEObject.properties.item("multivaluePropertyName").value.add(strVal)
CEObject.Save
End Sub
[{"Product":{"code":"SSNW2F","label":"FileNet P8 Platform"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Content Engine","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.0;5.1;5.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21670616