There is Partner Account field on lead object. Salesforce help says, Description:ID of the partner account for the partner user that owns this lead. Available only if Partner Relationship Management is enabled OR Communities is enabled and you have partner portal licenses.

Although field says lookup,it looks like will be prepopulated when a partner user creates a lead.

Is there any way to get content(ID of account) of this field.

When i try Lead.PartnerAccountID it says field doesnt exist

Does anyone have a clue?.It would be really good to get hold of this field


select PartnerAccountID from lead

| improve this answer | |
  • Actually, it does. @Jennifer is saying to select the PartnerAcountId related to the Lead record. The problem is her answer is incomplete. This should essentially be the equivalent of a query where you're looking for AccountId WHERE RecordType =: 'Partner'. That requires the Search layouts on the Objects to be properly configured for the lookups to work to find the proper accountId to populate the field. – crmprogdev Jul 27 '18 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.