Topic by Steve Flynn
I have a bit of PHP that updates a custom menu field on a custom object. I've got it working for one menu, but I can't get another to work because my menu contains numbers, and it's treating the numbers as if they were the IDs of the menu items, rather than the labels. Here's an example:
$CustObj->CustField = new \RightNow\Connect\v1_2\CustObjMenu\CustMenu();
$CustObj->CustField = \RightNow\Connect\v1_2\CustObjMenu\CustMenu::fetch($value);
Where my menu contains the values 1, 2, and 3, and $fetch is the lookup to set the menu to. I get an error where $value is 3, because it thinks I'm giving it a menu ID rather than a lookup, and there is no item ID 3.
I've tried making sure $value is a string rather than an integer, and I still get the same error. I'm not sure what else to try, or whether there's a way of forcing it to search lookups rather than IDs.