You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Update Yes/No Custom Field SOAP API C#

Accepted answer
5
Views
3
Comments
edited Mar 31, 2017 5:46PM in Integrations and APIs 3 comments

Content

Hi,

I'm trying to update a Yes/No Custom Filed using the SOAP API in C# and it is not working can you please help.

I was able to successfully update Integer, string and menu however, the Yes/No is not working for me below is my code.

For the Int type:

                        GenericField customField = new GenericField();
                        customField.name = "oracleid";
                        customField.dataType = DataTypeEnum.INTEGER;
                        customField.dataTypeSpecified = true;
                        customField.DataValue = 1;
                        GenericObject customFieldsc = new GenericObject();

String 

                        GenericField customField = new GenericField();
                        customField.name = "oracleName";
                        customField.dataType = DataTypeEnum.STRING;
                        customField.dataTypeSpecified = true;
                        customField.DataValue = "AMMAR";
                        GenericObject customFieldsc = new GenericObject();

Menu 

                       GenericField customField = new GenericField();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!