You need to sign in to do that
Don't have an account?

How to Send an email notification to Admin whenever a field is created or deleted
Hello All,
Can some one help me to Sending an email notification to Admin whenever a field is created or deleted for a custom object in salesforce?
Thanks in advance
Can some one help me to Sending an email notification to Admin whenever a field is created or deleted for a custom object in salesforce?
Thanks in advance
You cannot achieve this feature in inbuilt future you have to do customization here i am posting some sample code snippeet please go through it.
S.NoComponent
1)Create New Object
Singular Label: ObjectsExistingFieldsInfo
Plural Label: ObjectsExistingFieldsInfos
Object Name: ObjectsExistingFieldsInfo
Standard Field
Field Label: ObjectsExistingFieldsInfo
Data Type: Auto Number
Display Format: ObjInfo-{000}
2)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Field API Name
Field Name: Field_API_Name
Data Type: Text (255)
3)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Fields Count
Field Name: Fields_Count
Data Type: Number (18,0)
4)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Fields Info
Field Name: Fields_Info
Data Type: Long Text Area
-----------------------------------------------
Note:
We cannot create trigger on 'Object' or 'Field'.
Alternative is creating a Batch Class and schedule it as per the requirement.
To store the history of the fields we can user either list custom settings or custom object.
List Custom Settings is not supporting Text Area Long.
To store the history of the fields we need Text Area Long (255 character for text area data type is not sufficient.) field which is possible with the custom object
All Answers
You cannot achieve this feature in inbuilt future you have to do customization here i am posting some sample code snippeet please go through it.
S.NoComponent
1)Create New Object
Singular Label: ObjectsExistingFieldsInfo
Plural Label: ObjectsExistingFieldsInfos
Object Name: ObjectsExistingFieldsInfo
Standard Field
Field Label: ObjectsExistingFieldsInfo
Data Type: Auto Number
Display Format: ObjInfo-{000}
2)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Field API Name
Field Name: Field_API_Name
Data Type: Text (255)
3)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Fields Count
Field Name: Fields_Count
Data Type: Number (18,0)
4)Create New Field
Object Name: ObjectsExistingFieldsInfo
Field Label: Fields Info
Field Name: Fields_Info
Data Type: Long Text Area
-----------------------------------------------
Note:
We cannot create trigger on 'Object' or 'Field'.
Alternative is creating a Batch Class and schedule it as per the requirement.
To store the history of the fields we can user either list custom settings or custom object.
List Custom Settings is not supporting Text Area Long.
To store the history of the fields we need Text Area Long (255 character for text area data type is not sufficient.) field which is possible with the custom object
mail.setToAddresses(new List<String>{'kg.yadav@exicom.in'});