Users.saveContactTypeState (Method)
Sets the 'IsActive' and 'IsDefault' states for a contact type.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
contactTypeID | ContactTypeID | Required | A contact type's ID. |
isActive | Boolean | Optional. Defaults to '0'. | Boolean flag which when set to true indicates that the contact type is active. |
isDefault | Boolean | Optional. Defaults to '0'. | A Boolean flag which when set to true makes this the default contact type. |
Context:
License Requirements | None |
Permission Requirements | customer:CustomerAdmin |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the customer level, calls to this method will be logged |
Customization | Customization is not supported for this method. |
Error Codes:
Code | Error Message |
---|---|
66035 | You cannot set an inactive contact type to be the default. |
66037 | You cannot remove this contact type as it is the default contact. |
Notes:
None