Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Updating a Custom Field that is a Menu data type in C#

$
0
0

Topic by David Eggleston

Content

I am new to RightNow CX.  I am attempting to update a custom field that is a data type of menu.  I took the sample code which updates a text custom field but it is giving me errors when I attempt to put a value into the Custom Field, I am assuming because it is a menu data type.  The field is gender and has two defined values; "Female", "Male".  I will include my code which is borrowed from sample code in CX document site.  I have tried many of the datatypes on the DataTypeEnum.<NNNN> statement.  I am programming in C#.

Error is: "Missing NamedIDValue for property contact_gender\nWhile processing GenericFields[0]: contact_gender\nWhile processing GenericField: c\nWhile processing GenericFields[0]: c\nWhile processing Contact->CustomFields(rng_v1_2::GenericObject)."

Any help clearing up how to set the value of a menu custom field would be greatly appreciated.

Thanks in advance.

Version

August 2014 SP2 Build 113

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles