SHARE
TWEET

Get SData Group Results

RyanFarley Apr 26th, 2018 (edited) 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* USINGS
  2. using Saleslogix.SData.Client;
  3. using Saleslogix.SData.Client.Linq;
  4. */
  5.  
  6. var groupPluginId = "p6UJ9A00050Q";
  7.  
  8. var client = new SDataClient("http://localhost/sdata/slx/system/-/")
  9. {
  10.     UserName = "Admin",
  11.     Password = ""
  12. };
  13.  
  14. var contacts = client.Query("groups(\"" + groupPluginId + "\")/$queries/execute");
  15. foreach (SDataResource contact in contacts)
  16. {
  17.     var contactId = contact["CONTACTID"]?.ToString();
  18.     var email = contact["EMAIL"]?.ToString();
  19.     //...
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top