You need to sign in to do that
Don't have an account?
Andre Murillo
Get record ID from a DataSourceConnection class
Hi!
I have a Custom DataSourceConnection class (that extends DataSource.Connection) to retrieve related records for contacts from my server API. I need the record ID for the current contact to make my query, but haven't found a way to retrieve it (ApexPages won't work because it's not using Visualforce).
How can I get the record ID from my DataSourceConnection class?
Thanks for the help!
I have a Custom DataSourceConnection class (that extends DataSource.Connection) to retrieve related records for contacts from my server API. I need the record ID for the current contact to make my query, but haven't found a way to retrieve it (ApexPages won't work because it's not using Visualforce).
How can I get the record ID from my DataSourceConnection class?
Thanks for the help!
The class is being used/called by an External Object that uses a External Data Source, which uses my Custom DataSourceProvider + DataSourceConnection. It's based on this article:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start.htm
I need to get the record ID in the "SampleDataSourceConnection" class, inside the "getRows" method that is called by the overrided "query" method. This is how the code looks:
I understand that the External Object relates to the Contact Object automatically by the ContactId, but I don't have the ContactId on the external system, so I have to grab the contact email (and so the current contact id) to relate it with the external system...
https://customerfeedbacks.xyz/jcpenney-survey-talktojcpenney/
https://vivatv.live/