Unfortunately it is not possible to create a profile via metadata API, you can only retrieve it content using metadata API. For details please refer the section Profile for better understanding on how to work with profile using metadata API:
Yes you are correct, we can create fields, objects but it is not possible to make any DML operation on Profile. I would suggest you to post this idea on idea exchange if you wish to have such functionality in near future relelase on idea exchange portal:
As Per now I am reserching on this topic, and complete my reserch with in two or three days, If u find any link related to profile then please mail me,
Hello Abhishek,
Unfortunately it is not possible to create a profile via metadata API, you can only retrieve it content using metadata API. For details please refer the section Profile for better understanding on how to work with profile using metadata API:
http://www.salesforce.com/us/developer/docs/api_meta/
Thanks Vinita for your reply
But is any possible way to create profile using apex.
I also want to know How to add field in object page Layout using Apex metadata api
Write now I am able to create object, field , and many more thing using Apex metadata api
Thanks in advance
Hello Deep,
Yes you are correct, we can create fields, objects but it is not possible to make any DML operation on Profile. I would suggest you to post this idea on idea exchange if you wish to have such functionality in near future relelase on idea exchange portal:
https://success.salesforce.com/ideaSearch
Thanks Vinita For Reply
As Per now I am reserching on this topic, and complete my reserch with in two or three days, If u find any link related to profile then please mail me,
My mail id is abhishek_sf@hotmail.com.
Abhishek Tiwari