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
0
votes
0answers
13 views

Add link on related list of external object

I have set up an external data service having multiple external object's linked to some standard objects. One of them is shown as related list on the Account record view. I want to place a link or ...
0
votes
1answer
31 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 ...
1
vote
0answers
39 views

Einstein Analytics on External objects [closed]

Can Salesforce Einstein Analytics be sourced on External objects and external data source
2
votes
0answers
36 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 ...
0
votes
0answers
22 views

Is there a way to derive ExternalId from External Object key?

We are using External objects with custom adapter where ExternalId is 36 character unique identifier. When accessing external object Salesforce creates a 18 character long key similar to SObject Id i....
1
vote
0answers
9 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 ...
0
votes
1answer
65 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 ...
3
votes
1answer
1k views

Salesforce Integration: Pros and cons of S2S over the other options (REST API etc) [closed]

I am very familiar with Salesforce 2 Salesforce (S2S) and it works well for sharing data going forward between production-production orgs or sandbox-sandbox orgs, either automatically or manually. In ...
0
votes
1answer
89 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 ...
0
votes
1answer
59 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. &...
0
votes
0answers
19 views

Integrate External Data trailhead

While trying this trialhead (https://trailhead.salesforce.com/content/learn/modules/lightning_connect/lightning_connect_integrate) getting error *** "The 'Phone__x' external object is not correctly ...
1
vote
2answers
46 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 ...
1
vote
1answer
264 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 ...
0
votes
0answers
43 views

Error saving data to an external object

When trying to save data in an external object the following error occurs: FATAL_ERROR|System.UnexpectedException: A callout was unsuccessful because of pending uncommitted work related to a process, ...
0
votes
1answer
37 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 ...
0
votes
1answer
206 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 ...
0
votes
0answers
47 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(...
0
votes
0answers
71 views

Testcoverage for external Objects

It seems that Salesforce does not provide adequate tools to get a Testcoverage for external Objects. There are some Workarounds: Unit Testing External Object with Mocked Data Apex Test coverage on ...
4
votes
0answers
140 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 ...
0
votes
0answers
43 views

How do I put an external data source into an unmanaged package with named credentials?

I am packaging an external data source (namely Salesforce Connect: OData 4.0). I'm specifically having trouble implementing named credentials. For authentication, I'm using Named Principal with ...
1
vote
0answers
27 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 ...
0
votes
0answers
163 views

Query Case Feed Posts (Chatter)

I am bringing in a Case object from another org as an external object (read only). I am trying to re-create the notes associated with it from the chatter feed and build a lwc. The problem I am ...
0
votes
0answers
33 views

External objects don’t support some aggregate functions and clauses Like avg, groupBy etc. what are possible workarounds?

External objects don’t support the following aggregate functions and clauses. – AVG() function – COUNT(fieldName) function (however, COUNT() is supported) – HAVING clause - GROUP BY clause – MAX() ...
0
votes
1answer
56 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.
1
vote
2answers
609 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 ...
0
votes
1answer
209 views

SOQL Getting Related Records of External Object

I am trying to figure out how to write a SOQL query to get some related record data. I have an external Contact object I am bringing into my org. It has a field on it that I created an indirect ...
0
votes
1answer
397 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 ...
0
votes
1answer
19 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 ...
6
votes
0answers
512 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 ...
1
vote
1answer
771 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 ...
1
vote
2answers
111 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 ...
2
votes
1answer
55 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 ...
1
vote
1answer
223 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 ...
0
votes
0answers
41 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 ...
3
votes
1answer
703 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....
1
vote
0answers
209 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 <...
0
votes
1answer
192 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 ...
2
votes
3answers
287 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 ...
0
votes
0answers
34 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 ...
2
votes
0answers
64 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 ...
1
vote
1answer
59 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 ...
19
votes
1answer
227 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, ...
0
votes
1answer
205 views

OData connection using Lightining 2.0

When i am set up the url in salesforce and validate ans sync i am receiving this error. Please suggest me how to solve this ,its kind of urgency You don't have permission to view this external data....
1
vote
1answer
254 views

External Object general error message on login

When logging into an org as a System Admin, I receive the following error: The text of the error message: "Developer error in file apex://Order__x at line number -1" Stack trace error message: "...
1
vote
0answers
59 views

How to connect to SAP through Salesforce Connect

Can anyone help me how to connect to External Data i.e, SAP through Salesforce connect using External Data Source and External Objects. Thanks.
3
votes
0answers
110 views

Salesforce Connect Custom Adapter test class

What is the correct way to approach testing Salesforce Connect custom adapters? Perhaps there is a unified approach to testing all of its parts, but specifically what is the approach for testing the ...
1
vote
1answer
1k views

External Data source through apex custom adapter

I want to connect the external database from salesforce. I have developed the custom adapter (DataSource.Connection class and DataSource.Provider class). In connection class, Sync method is working ...
2
votes
0answers
195 views

Obtaning refresh token when using Extenral Data Source with Salesforce OAuth 2

I'm trying to configure an External Data Source to use Salesforce Auth Provider so the OAuth 2 will pass access and refresh token. My configuration: Identity Type: Per User Authentication ...
0
votes
1answer
13 views

How can I add Tab to an External Object's Search Layouts?

I have two External Objects. One I added a few weeks ago and it has a Tab Search Layout: I can't remember how I gave it a Tab Search Layout but I need that for the following External Object (which ...
3
votes
1answer
396 views

Identifying user interacting with external objects using Salesforce Connect OData 4.0

I have external data source configured in Salesforce, it connects to OData 4.0 API. Let's say I have 1 external object in this data source, called Kitten. The problem: I want security to be handled on ...