Thanks for the response ,and Yes we can create custom fields via Apex code , But I am not asking about creation of fields via Apex code, My question is about ApexClass Tooling Api Sobject , How can i create a field for ApexClass object ?? Please look into the link http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_apexclass.htm
@Vinit, If u open detail page of any apex class you will see the below image
Can u see tabs like Class body , Class summary, Version settings & Log filters ?? I want to add a custom field beside those existing tabs . If anyone know that we can achieve it , please help me out.
However ,there is a workaround which was created by @Andy.You might want to look at below :-
https://github.com/financialforcedev/apex-mdapi
Also,the below post has replies which would inform how you can use the github package.
https://developer.salesforce.com/forums?id=906F00000008z8gIAA
Hope this helps !!
Please look into the link http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_apexclass.htm
Thanks !
However,I would like to understand what is the use case here and why you want to add a field to ApexClass object ??
Can u see tabs like Class body , Class summary, Version settings & Log filters ?? I want to add a custom field beside those existing tabs . If anyone know that we can achieve it , please help me out.
Thanks !