Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: SData Contact Search
Chris
Posts: 1
 
SData Contact SearchYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 12 7:56 AM
fiogf49gjkf0d

 


Hi


 


I am new to SData.


 


What I am ultimately trying to do is search the database for a business and if it doesnt exist then insert the business into the database.


 


I have the example below working that searches for contacts with a last name starting with a but I would also like to search on company name, town, website and telephone. Please can someone tell me how I would do this.


 


Any help would be grately appreciated.


 


Willertron


 


 




<p style="color: #554c45; font-family: Arial; font-size: 12px; line-height: 15px; text-align: left; padding: 0px; margin: 0px;">Dim svc As ISDataService = New SDataService("http://s:p/sdata/slx/dynamic/-/", "", "")

 




            Dim req As SDataResourceCollectionRequest = New SDataResourceCollectionRequest(svc)




            req.ResourceKind = "Contacts"




            req.QueryValues.Add("where", "LastName like 'a%'")




            Dim feed As AtomFeed = req.Read()




            For Each entry As AtomEntry In feed.Entries


                Dim payload As SDataPayload = entry.GetSDataPayload()




                Dim account As String = payload.Values("AccountName").ToString


                Dim contactName As String = payload.Values("NameLF").ToString




                TextBox1.Text += account & ", " & contactName & vbCrLf


            Next



[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 10:22:25 AM