Deletes a contact data field within the account
This method can be used to delete a contact data field within your account. You can't delete a reserved contact data field (FIRSTNAME, LASTNAME, ADDRESS, POSTCODE, GENDER) or any that are currently in use elsewhere in the system.
This operation will return an API dependencies object. This will specify the type of dependency and the ID of the dependency.
SOAP action: http://apiconnector.com/v2/ApiService/DeleteDataField
Input and output parameters
The input and output parameters for this method are:
Input parameters
- FieldName - required; string
Output parameters
- DeleteDataFieldResult
- Dependencies - array of Dependency
- Type - string ('Campaign', 'Survey', 'MicrositePage', 'DynamicContent', 'ContactLabel', 'SurveyQuestion', 'AddressBook', 'DynamicContentRule', 'CampaignLink', 'CampaignTemplate')
- ObjectId - integer
- Result - boolean
Example
using (var client = new ApiServiceClient())
{
client.ClientCredentials.UserName.UserName = "username";
client.ClientCredentials.UserName.Password = "password";
var fieldName = "BIRTHDAY";
var dependencyResult = client.DeleteDataField(fieldName);
}