You need to sign in to do that
Don't have an account?
Display Relationship Query Result
Hi,
I have this code:
var soql= SELECT c.Account.Name (SELECT Subject,ActivityDate, Description from ActivityHistories) FROM Contact c WHERE Name Like 'XYZ%' var sql = sforce.connection.query(soql); var records = sql.getArray("records"); for (var a in records) { returnArray[a] = new Array(); alert(records[a].Name); //alert(records[a].ActivityHistories.Subject); .... .... }
I get Contact Name from records[a].Name. I am not sure how to get the values of ActivityHistories object.
I wanted to get the values of Subject,ActivityDate, Description and display it to the page.
Could you please help me ? how can we reference this Relatiohip query result?
Thanks for Your Time.
OK. I got the steps from the following post.
http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=2856&query.id=495828#M2856
Thanks.
All Answers
OK. I got the steps from the following post.
http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=2856&query.id=495828#M2856
Thanks.
This is really helpfull! Specially when the link works!