Skip to content

Instantly share code, notes, and snippets.

@proteux
Last active December 17, 2015 17:38
Show Gist options
  • Save proteux/5646913 to your computer and use it in GitHub Desktop.
Save proteux/5646913 to your computer and use it in GitHub Desktop.
RightNow Custom Field via SOAP
Contact contact = new Contact
{
CustomFields = new GenericObject
{
GenericFields = new GenericField[]
{
new GenericField
{
name = "c",
dataType = DataTypeEnum.OBJECT,
dataTypeSpecified = true,
DataValue = new DataValue
{
Items = new object[]
{
new GenericObject
{
GenericFields = new GenericField[]
{
new GenericField
{
name = "fieldName",
dataType = DataTypeEnum.STRING,
dataTypeSpecified = true,
DataValue = new DataValue
{
Items = new object[] { "new field value" },
ItemsElementName = new ItemsChoiceType[] { ItemsChoiceType.StringValue },
}
}
},
ObjectType = new RNObjectType()
{
TypeName = "ContactCustomFieldsc"
}
},
},
ItemsElementName = new ItemsChoiceType[]
{
ItemsChoiceType.ObjectValue
},
}
}
},
ObjectType = new RNObjectType
{
TypeName = "ContactCustomFields"
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment