Dealing with multienums with SugarCRM

SugarCRM comes with a very handful function to convert multi enum values from ^value_1^,^value_2^,^value_3^,^value_4^ into an array.

$aField = unencodeMultienum($fieldValue);
var_dump($aField);

will give you an array.

In the same manner the reverse is possible. Give an array of values which will be converted into a string which SugarCRM understands.

encodeMultienumValue($arr);

Hope this helps.

Hope you find this blog post helpful.

Feel free to add comments and queries, that helps us to improve the quality of posts.

You can contact us at info@infotechbuddies.com

Thank you.

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *