'How to Update MultiList field values while using DEF process

I have setup the DEF process to import the data from External database into our sitecore instance.

I have a field in sitecore item which is a 'multilist field'.

Item selected on the multilist is considered as text(separated by pipe|) rather and an object which it is expecting.

How can we update this field using DEF process so that the text is converted to the respective item id's and the correct objects are shown on the selected list.

Any help with a sample code is really appreciated. Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source