Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [externalobjects]

External objects are similar to custom objects, but external object record data is stored outside your Salesforce organization. External objects are available with Salesforce Connect and Files Connect.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
14 views

When using Salesforce Connect External Objects how often does the data update?

Is it customizeable or is it controlled by SF?
user avatar
1 vote
0 answers
16 views

How to use navigationmixin on externalobject with external-Id

I have a lwc page on click of the button i need to open an external object via external-id. I know that i can first make a query with ext-id and get the record id and then i can redirect, but is there ...
user avatar
  • 309
1 vote
0 answers
44 views

Assign permission set in a connected Org via external objects with Apex class

We are creating users in a connected Org via external objects without issues, but when trying to assign the permission sets to those users we are getting the error "System.SObjectException: ...
user avatar
0 votes
1 answer
75 views

Can External Objects be packaged in Managed Packages?

The [Metadata Coverage Report][1] doesn't mention if External Objects can be packaged as part of Managed Packages. So, this is not clear if External Objects can be packaged in Managed Packagesor not? [...
user avatar
  • 13.2k
0 votes
1 answer
198 views

Send JWT token with External Data Source for Odata v4 endpoint in header

I am trying to Authenticate the Calls to My Odatav4 , In My Service I have started accepting JWT token in header and it is working if i call the service in postman with JWT token in header, Now in my ...
user avatar
0 votes
0 answers
15 views

How to track data changes of a Managed External Object?

We are using this external package for Salesforce which has some External Objects that we want to trigger events off of. I am not able to click the check box 'Track Data Changes' on the External ...
user avatar
  • 1
1 vote
0 answers
152 views

Query External Object filtering by Date or DateTime dataType

first time ever writing here, hope anyone can help me: We're working with Salesforce Files Connect, currently configured and working with SharePoint. Users can browse files by certain filters we're ...
user avatar
0 votes
0 answers
157 views

EXTERNAL_OBJECT_EXCEPTION: This data isn't available because the object's field has an external column name that can't be found on the external system

We are working on configuring external objects and have the connection setup. It was able to validate and sync, and pull down the schema/metadata for the object (Plan). The problem is when we attempt ...
user avatar
  • 505
0 votes
0 answers
21 views

Display external object details on related record

We are working on setting up external objects to pull data from an internal database in order to display additional information about an account that is not stored in Salesforce. So since they user ...
user avatar
  • 505
0 votes
0 answers
25 views

OData API - Lighting Connect

I'm facing a unique issue where Salesforce is changing the value of my Indirect lookup field from lower case to upper case in Lighting context. I'm trying to fetch data from a remote source using ...
user avatar
0 votes
0 answers
241 views

We ran into an error when running this report. Try to re-submit your query

The report is created using custom report type and the composition are: Legend: (C) = Custom | (X) = External Base: Account Joined Object: External Object from Heroku PG named as Collection Details ...
user avatar
1 vote
0 answers
39 views

Insert into External Object

We have set up a postgres on Heroku. Using Heroku Connect we have exposed couple of tables as external object following this [link][1] . We are able to read the data in Salesforce. But when we are ...
user avatar
  • 83
0 votes
1 answer
191 views

Not able to add External Data User Authentications to user profile/setting

I am trying to add External Data User Authentications to my user in salesforce. But it's showing Named Credentilas box has my option to select but somehow it is greyed out. Steps->Authentication ...
user avatar
  • 1,277
2 votes
1 answer
129 views

What is preferable choice for integration: Salesforce to Salesforce or MiddleWare tool?

If there are two companies which use the same Order data and the data is created in company A and then the Order data should be sent to company B, should Salesforce to Salesforce integration be used ...
user avatar
  • 13.2k
1 vote
1 answer
358 views

How do I mock external objects for the purpose of testing a batch Apex class?

I have a Batchable Apex class that queries against an external object in the QueryLocator. I need to be able to write a test against the batch apex class to achieve coverage. I've looked this answer ...
user avatar
  • 287
0 votes
0 answers
143 views

Can't query more than 2000 records on external data source object

I understand query_all and query_more, but I can't seem to get more than 2000 records from an external data source object. I've tried this a few ways, and below is Python. Note that if I use the (...
user avatar
  • 1
0 votes
1 answer
272 views

List View for External Object created using Custom Adapter is throwing an Error

We have created a custom adapter for Salesforce Connect. The "All" list view is working fine, but if I add a filter on the createdate = This Month, it throws me below error. The filter ...
user avatar
1 vote
0 answers
88 views

External Lookup Field Displayed as Textbox Instead of Lookup Input

I have a custom object which has two external lookup fields to two different external objects that were created via Cross Org Adapter. The first external lookup field is for eternal Case object. This ...
user avatar
1 vote
1 answer
730 views

External Objects - Security based on logged in community User

Search is enabled on external objects in the community. What setup needs to be done so as results returned are specific to the logged in user? Based on what I researched so far I think: When external ...
user avatar
1 vote
0 answers
174 views

Einstein Analytics on External objects [closed]

Can Salesforce Einstein Analytics be sourced on External objects and external data source
user avatar
2 votes
0 answers
49 views

Where to define server/credentials when connecting to External Objects?

This must be really simple and I'm completely overlooking it but where are the credentials/server specified when defining an External Data Source? In this org's case, we have a custom External Data ...
user avatar
1 vote
0 answers
11 views

How do I get a coverage with external object in Apex Class? [duplicate]

After retrieving data from an external object, I'm in progress type conversion to an External Object. However, when I run test class, it is not covered from this point. test__x objT = new ...
user avatar
0 votes
1 answer
519 views

Report on External Object

I am trying to create a report on an external object. The enable reports checkbox for this object is set to true, however when I go to reports and click on new report, the external object doesn't come ...
user avatar
0 votes
1 answer
1k views

Salesforce external data source "EXTERNAL_OBJECT_EXCEPTION: You are not authorized to perform that operation."

I configured a Salesforce external data source to connect to my Office 365 online Sharepoint account. Everything worked! I was able to browse Sharepoint files from the Files tab. I go to grab some ...
user avatar
  • 121
1 vote
1 answer
254 views

The External Change Data Capture doesn't work with an error!

I'm using OData v4.0 and the External Object is set in Salesforce, which is connected with Heroku Connect. However, the Change Data Capture feature does not work, and the following error occurs. &...
user avatar
1 vote
2 answers
150 views

oAuth: setting it up for server-to-server connection with External Objects

I'm setting up External Objects using Salesforce Connect (aka Lightning Connect) and OAuth. I've configured the Authentication Provider to use the OAuth parameters and the External Data Source to use ...
user avatar
0 votes
1 answer
188 views

How to check values of OutputField in lightning component on external objects

I am trying to check the value based on outputfield, Here everytime it is showing else condition values only. Basically the value might be either 0 or 1. Here is my code. <aura:component ...
user avatar
  • 17
0 votes
1 answer
1k views

Not being able to query External Object from Trigger

I need to query an external Object from Contact Trigger. If records are present in the external object, then we have to update the contact. Otherwise we have to create the contact. Now, my issue is ...
user avatar
  • 1,071
0 votes
0 answers
157 views

AsyncSaveCallback not working in apex

I am trying to insert records to an external object and get the Id back for the inserted record I have the following piece of code Database.SaveResult[] insertResultAccount = Database.insertAsync(...
user avatar
  • 1,071
5 votes
0 answers
349 views

Scratch org with Knowledge and External objects

I'm having issues creating a Scratch Org with both Knowledge and External Objects enabled. It looks like Knowledge can only work in Enterprise edition scratch orgs while External Objects/Data sources ...
user avatar
  • 724
1 vote
0 answers
35 views

Custom "Files Connect" integration between asset management system and Salesforce

Is possible to set up a Files Connect integration (that behaves like the existing out-of-box Files Connect integrations - Box, Google Drive, Sharepoint, etc) with a custom digital asset management ...
user avatar
  • 111
1 vote
1 answer
150 views

advantages of using OData connector over Custom apex connector [closed]

so I have connected an external data source to salesforce using custom apex connector, I want to know the advantages and disadvantages of doing the same with odata connector.
user avatar
0 votes
1 answer
2k views

Apex Test coverage on External Objects

How can the Test Coverage can be fulfilled for the Apex classes which queried for External Objects.I have written Test class just like assuming External Object behaves like a custom Object but getting ...
user avatar
0 votes
1 answer
29 views

External Object Sync Without Wiping Cusomizations?

I have a table in a PostgreSQL database that I am exposing as an External ODATA Object to bring into my Salesforce Org. There are about 25 columns on this table. Within my Org, in the external object ...
user avatar
  • 83
1 vote
2 answers
330 views

External Object to make only subset of records from mysql table available for SF org

We have a rather typical requirement at a first glance - just to make bunch of records from external mysql database available in clients' sf orgs. And we are giving a short to SF External Object as an ...
user avatar
  • 2,713
2 votes
1 answer
123 views

External Objects

We use a homebrew ERP system based on MySQL & Perl. In Salesforce accounts we need some picklists to select values from specific MySQL tables (only reading from external system is required). New ...
user avatar
  • 475
1 vote
2 answers
1k views

External Object Query in trigger

I have an external object lookup in case. I have a scenario when a record inserted or updated on the case. If the type and subtype field condition matches, I have to check the external object field ...
user avatar
6 votes
0 answers
738 views

External Objects not supported in Force.com sites

(Edit: all of this is happening only in a Force.com site. The Lightning Web Component is not the source of the problem) I'm trying to query an External Object inside @AuraEnabled method, but I'm ...
user avatar
  • 567
1 vote
1 answer
3k views

Record level sharing for external objects

As per the docs, record sharing is not available on External object. Does that means that all users will be able to see all external object records? (as they are searchable) For example, let say you ...
user avatar
1 vote
1 answer
652 views

External Object Related List shows timeout error

I am trying to configure an external object in Salesforce for which the source is a Postgres table that contains approx. 34 million records. I was able to set up the External data Source which ...
user avatar
0 votes
0 answers
64 views

Can external objects access custom objects in the same org?

The External Objects documentation describes a cross-org adapter that: Uses the Lightning Platform REST API to access data that’s stored in other Salesforce orgs. Can this (or some other ...
user avatar
  • 129k
1 vote
0 answers
394 views

Database.querylocater on external object in batch class not returning any rows

I am writing a batch class on external object. Here I am using database.getQuerylocator in start method as the result will contain more thank 50k records. Batch class code: global class <...
user avatar
3 votes
1 answer
2k views

Related List for external object not showing any records in Lightning (SharePoint Online)

I am having problems with displaying data from external data source in Lightning. I have a connection to SharePoint Online while using Indirect Lookup relationship to match external data with Accounts....
user avatar
0 votes
1 answer
385 views

Salesforce External Object - Query where clause text size issue

As per requirement i was query to external object for selected product in where clause i was put all the product id but till 100 Id its working fine but for 200 its giving error . How we can avoid ...
user avatar
3 votes
3 answers
673 views

Overcome Queueable maximum depth limit in dev orgs

To migrate "trees of related data" from an external system to Salesforce I am using dynamic chains of Apex Queueables. Imagine I am "synchronizing" Accounts, Opportunities and Contacts from an ...
user avatar
0 votes
0 answers
48 views

Error when trying retrieve record id from external object detail page on button click

I have a custom button on a external object detail page which executes a java script.I am trying to fetch the id of the record var id = '{!ExternalObject__x.Id}' and when i click on save I received ...
user avatar
1 vote
1 answer
549 views

Code Coverage - Salesforce Connect Custom Adapter / Datasource.Connection Class

I am unable to find documentation on or get any code coverage for the customer adapter Apex Class (Datasource.Connection Class). For awareness, the external data source and customer adapter functions ...
user avatar
  • 1,818
2 votes
0 answers
144 views

Salesforce Connect report limitations?

We have an Odata endpoint configured for SF Connect access. 3 simple external objects, and having an extremely difficult time getting reports to function. Standard reports are ok until you add any ...
user avatar
1 vote
1 answer
120 views

Add Image to External Objects

I have created an External Object Customer . I need to add documents as well such as passport pic & pdf document. The data is now saved as binary from the database that I load data from. My ...
user avatar
  • 11
19 votes
1 answer
260 views

Are Custom Metadata Types considered External Data Sources?

Back in 2016 we created a Custom Metadata Type with about 3000 rows. There is a trigger that reads all 3000 rows (via SOQL) and creates a map. This has been working for years, until Winter '19. Now, ...
user avatar