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
0 answers
76 views

NOT IN filter does not work when querying External Object

I have an external object from which I want to retrieve certain values avoiding some other ones depending on certain conditions. The problem is that when I apply the NOT IN filter like in the ...
  • 791
0 votes
0 answers
39 views

Authorization required error on submit button to retrieve custom object field

I have created a salesforce site using visualforce page. User will input the value and after a button click, custom object should be displayed on page. After after button click, getting "...
0 votes
0 answers
32 views

Cannot save data in custom field on external object

I have an external object that is coming from a heroku postgres database. I have managed to successfully import the data but not all of the fields have been imported. There is a field on the postgres ...
0 votes
0 answers
41 views

Trying to Create a Feed Using an External Callout Using Chatter API

What works: All three files are communicating with each other The lightning button calls handleClick() handleClick() gets the return value of getFeedElements() getFeedElements(any given record ID) ...
0 votes
2 answers
81 views

Edit external object records from Heroku using salesforce connect

We have an external database set up in Heroku using postgres. I would like to be able manage some data from the heroku postgres database in salesforce. I have configured salesforce connect with the ...
1 vote
0 answers
31 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 ...
  • 349
1 vote
0 answers
59 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: ...
0 votes
1 answer
134 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? [...
  • 14k
0 votes
1 answer
318 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 ...
0 votes
0 answers
28 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 ...
  • 1
1 vote
0 answers
297 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 ...
1 vote
0 answers
53 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 ...
  • 183
0 votes
1 answer
314 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 ...
  • 1,275
2 votes
1 answer
163 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 ...
  • 14k
1 vote
1 answer
518 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 ...
  • 287
0 votes
0 answers
234 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 (...
  • 1
0 votes
1 answer
402 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 ...
1 vote
0 answers
139 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 ...
1 vote
1 answer
891 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
0 answers
192 views

Einstein Analytics on External objects [closed]

Can Salesforce Einstein Analytics be sourced on External objects and external data source
2 votes
0 answers
54 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 ...
1 vote
0 answers
12 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
1 answer
743 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 ...
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 ...
  • 131
1 vote
1 answer
290 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. &...
1 vote
2 answers
174 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 ...
0 votes
1 answer
264 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 ...
  • 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 ...
  • 1,123
0 votes
0 answers
206 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(...
  • 1,123
5 votes
0 answers
398 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 ...
  • 714
1 vote
0 answers
39 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 ...
  • 111
1 vote
1 answer
218 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.
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 ...
0 votes
1 answer
31 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 ...
  • 123
1 vote
2 answers
392 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,813
2 votes
1 answer
148 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 ...
  • 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 ...
6 votes
0 answers
807 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 ...
  • 577
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 ...
1 vote
1 answer
753 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
0 answers
73 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 ...
  • 131k
1 vote
0 answers
442 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 <...
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....
0 votes
1 answer
406 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 ...
4 votes
3 answers
753 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
0 answers
54 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 ...
1 vote
1 answer
622 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 ...
  • 1,899
2 votes
0 answers
150 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
1 answer
135 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 ...
  • 11
19 votes
1 answer
265 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, ...