Salesforce SOQL access the managed package object

2.3k Views Asked by At

In Account object, I have a custom field named "Company" which in a managed package (Namespace Prefix: act). How can I get the value from this custom field by SOQL? Thanks in advance!

1

There are 1 best solutions below

0
On

This should do it;

SELECT act__Company__c FROM Account

Generically:

[tablePrefix].[NameSpace]__[Field]

From this page in the Salesforce documentation.