JFDu / salesforce-dotnet

Automatically exported from code.google.com/p/salesforce-dotnet
0 stars 0 forks source link

Need code example calling the GetContactsByAccountId function #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a code example calling the GetContactsByAccountId function?  

What version of the product are you using? On what operating system?
Version 0.1

Thanks

Original issue reported on code.google.com by bdougl...@gmail.com on 1 Jun 2009 at 4:41

GoogleCodeExporter commented 8 years ago
Hi,
please post questions like this at the forums: 
http://groups.google.com/group/salesforce-dotnet-api

I've updated the source with an example of this function. Goes like this:
  protected void btnGetContactsByAccountId_Click(object sender, EventArgs e)
        {
            foreach (Contact contact in new 
ContactController().GetContactsByAccountId(txtAccountId.Text))
            {
                lblContacts.Text += "<br />" + contact.Name;
            }
        }

Original comment by stiansol@gmail.com on 1 Jun 2009 at 6:26