You need to sign in to do that
Don't have an account?
rflorig1
client join syntax
quick question:
i understand there's no way to join tables using the API, but i want to join the account and user table on the client side. whats the syntax to do so?
i have a query: sforceclient.query("select id, name, ownerid from account") and i want to display the owner's full name, rather than the id that is returned. I searched around and figured out it involves querying both the account and user tables and combining the arrays, but i was wondering if there's some established code out there showing exactly how to do so (in javascript).
thanks
Message Edited by rflorig1 on 08-28-2006 11:43 AM
Yes you will need to query the User table in a second call.
sforceclient.query("Select FirstName,LastName from User where ID = '"+ownerid+"'");
(OwnerID is the value you received from your previous query).
Hope that helps
Gareth.
Message Edited by Gareth Davies on 08-28-2006 09:12 AM