scottvonduhn
06/22/2023, 4:59 PMTyler Lamparter
06/22/2023, 5:28 PMscottvonduhn
06/22/2023, 5:32 PMscottvonduhn
06/22/2023, 7:11 PMscottvonduhn
06/22/2023, 7:16 PMSELECT Seller_Id__c, Channel_Account__c FROM Case
SELECT Account__c, Channel_Id__c FROM Channel__c
I need to export the Seller_Id__c
and Channel_Id__c
to NetSuite.
The Case
and the Channel__c
records both have an Account lookup field, Case.Channel_Account__c
and Channel__c.Account__c
, however due to the limitations of Salesforce, it’s not possible to join them together in one SOQL query. I simply want to merge these two queries logically, or perform the equivalent of:
SELECT Seller_Id__c, (SELECT Channel_Id__c FROM Channel__c WHERE Account__c = Channel_Account__c) FROM Case
scottvonduhn
06/22/2023, 7:16 PMTyler Lamparter
06/22/2023, 8:52 PMselect Channel_id__c from Channel__c WHERE Account__c = {{record.Channel_Account__c}}
Tyler Lamparter
06/22/2023, 8:53 PMTyler Lamparter
06/22/2023, 8:54 PMTyler Lamparter
06/22/2023, 8:54 PMTyler Lamparter
06/22/2023, 8:55 PMscottvonduhn
06/22/2023, 9:29 PMrecord.
before the Channel_Account__c
field in my extract. I’ll see if this worksscottvonduhn
06/22/2023, 9:52 PMTyler Lamparter
06/23/2023, 3:02 PM