How to setup External Objects in Salesforce?

For Example, you are having customer data in an MySQL server out of your Salesforce Environment then MySQL is the External Data source and the tables inside external data source are known as External Objects

External DataSource

External Datasource are the source of truth for the external objects in Salesforce.

For Example, you are having customer data in an MySQL server out of your Salesforce Environment then MySQL is the External Data source and the tables inside external data source are known as External Objects

External Objects

  1. External objects are similar to custom objects, except that they map to data that’s stored outside your Salesforce org.
  2. Each external object relies on an external data source definition to connect with the external system’s data
  3. Each org can have up to 200 external objects. External objects don’t count toward the amount for custom objects.

SOQL Considerations for Salesforce Connect

  1. Each SOQL query can have up to 4 joins across external objects and other types of objects.
  2. External objects don’t support the following aggregate functions and clauses.
    1. AVG() function
    2. COUNT(fieldName) function (however, COUNT() is supported)
    3. HAVING clause
    4. GROUP BY clause
    5. MAX() function
    6. MIN() function
    7. SUM() function

Page Layout Limit for External Object

  1. You can’t rename a page layout if you’re using Salesforce Professional Edition.
  2. In Lightning Experience, page layouts support up to 55 lookup fields. In Salesforce Classic, page layouts support up to 40 lookup fields.

Demo

Resources

1 Link to External DataSource – https://orderdb.herokuapp.com/orders.svc
2 – https://trailhead.salesforce.com/content/learn/projects/quickstart-lightning-connect
3 – https://help.salesforce.com/articleView?id=platform_connect_considerations.htm&type=0
4 – https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_external_objects.htm

Amit Singh
Amit Singh

Amit Singh aka @sfdcpanther/pantherschools, a Salesforce Technical Architect, Consultant with over 8+ years of experience in Salesforce technology. 21x Certified. Blogger, Speaker, and Instructor. DevSecOps Champion

Articles: 299

Newsletter Updates

Enter your email address below and subscribe to our newsletter

2 Comments

  1. Great Post – Amit as per Trailhead. In case of External lookup you can have Parent object as external and child can be related as Standard or Custom or any other external object.
    And , in case of Indirect Lookup Parent Object will be Standard or Custom but child will be always External.

    Reference at the end of this page:
    https://trailhead.salesforce.com/content/learn/modules/large-data-volumes/design-your-data-model?trailmix_creator_id=strailhead&trailmix_slug=architect-data-architecture-and-management

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Panther Schools

Subscribe now to keep reading and get access to the full archive.

Continue reading