You need to sign in to do that
Don't have an account?
Metadata API - CustomConsoleComponent on Layout
I believe there is a bug in retrieving the value for SideBarComponent field 'lookup' (https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_layouts.htm#SidebarComponent). We set a console component to look at the current record for a quick reference of fields on that record. When retrieving the Metadata, I noticed the entire container for that console component was missing. The retrieve of a value for a lookup to a related field worked though - i.e. Lead.Account__c was able to be retrieved.
I tried to update the file manually to get it to work, but couldn't figure out the value to pass in for it to reference itself. Salesforce appears to be looking for a field name, and after trying several differnt values ('ThisLead','Lead','Id',NULL) I couldn't get it to work. Any ideas if retrieving that information has a bug or even what the value should be to pass into the file?
I tried to update the file manually to get it to work, but couldn't figure out the value to pass in for it to reference itself. Salesforce appears to be looking for a field name, and after trying several differnt values ('ThisLead','Lead','Id',NULL) I couldn't get it to work. Any ideas if retrieving that information has a bug or even what the value should be to pass into the file?
All Answers
I believe the issue is because the metadata looks for the reference field to display in the lookup component, but since we are referencing the record itself there is no reference field. I couldn't fix this manually on the deployment file because I didn't know what to put for the reference field. We ended up deploying as is and manually configuring on the target server.
This issue is specifically referencing the record itself as opposed to a related object. The markup should look something like this: where "ThisLead" is the value to set to display fields for the current record. When retreiving a package with that type of custom console component the information is passed in if it's a lookup, but if it references the current object it doesn't have any value to pass in.