You need to sign in to do that
Don't have an account?

Creating join w/ Query
Trying to create a join - yes I know there is no join capability currently - hence my struggle. I've got a custom object represented as a lookup field on the account record. The field is not required and in fact may be null at times. I need to do the following;
Query the custom object based on some criteria, then based on the custom object 'Id' I need to then query and get the accounts associated with the custom object.
qr = sforceClient.query("Select Id, Name, Latitude__c, Longitude__c From SFDC_65_Building__c s Where BuildingPostalCode__c = 'xxxx'");
I am assuming I would then create some sort of an array to hold the value of the Id's returned and then in turn run an additional query based on the id's (would love to use retrieve but not possible as I don' t have the account Id) so second query would be;
qr2 = sforceClient.query("Select Id, Name From Account Where customObjectField =" +arrayValue);
I can't figure it out however. Any help much appreciated.
Query the custom object based on some criteria, then based on the custom object 'Id' I need to then query and get the accounts associated with the custom object.
qr = sforceClient.query("Select Id, Name, Latitude__c, Longitude__c From SFDC_65_Building__c s Where BuildingPostalCode__c = 'xxxx'");
I am assuming I would then create some sort of an array to hold the value of the Id's returned and then in turn run an additional query based on the id's (would love to use retrieve but not possible as I don' t have the account Id) so second query would be;
qr2 = sforceClient.query("Select Id, Name From Account Where customObjectField =" +arrayValue);
I can't figure it out however. Any help much appreciated.
Code:
-Zach
Message Edited by zach on 09-12-2006 07:41 AM