You need to sign in to do that
Don't have an account?
Jvallee
Custom Field: Adding to PageLayout with API and Making Field Available to API.
I have been able to create a custom field through the Metadata API, which is great. But now to be able to use it, I need to be able to add it to all appropriate Page Layouts and Make it available in the WSDL.
So first question, how can I add a custom field to a Page Layout with the API? I tried creating a Layout object (inherits from Metadata) and using the Metadata API call create to create the new object which causes a "Field Integrity Exception" with a message of "Parent entity failed to deploy" so I think that I'm close, but the message doesn't really mean much to me.
Second, once I create a new field, I want to be able to query for it. Is there a way to dynamically update the WDSL to reflect the new field?
So first question, how can I add a custom field to a Page Layout with the API? I tried creating a Layout object (inherits from Metadata) and using the Metadata API call create to create the new object which causes a "Field Integrity Exception" with a message of "Parent entity failed to deploy" so I think that I'm close, but the message doesn't really mean much to me.
Second, once I create a new field, I want to be able to query for it. Is there a way to dynamically update the WDSL to reflect the new field?
Hi Jvallee,
Even I am facing the same problem. I am able to create fields from api but only fields marked required is visible in the standard page layout created along with custom object.
if you have sample code pls share,
Thanks in advance
Hi Jvallee,
I am new to salesforce and want to create a PageLaout for any object (Standard and Custom ) using metadata API (CRUD not from xml, package.xml). I am able to create the Custom Object and Page Layout using meta data api but not able to attach the layout with the custom object. I am not sure whether I am following correct way.
Can you please help me or if you can share some same code that's b great?
Thanks,
Hi,
Could you please tell me how can i access report data (meta data like names, etc) from Meta data Api?