Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, April 29, 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!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: SData &include=accountmanager only works on a SingleResource Request
Marcel Heuberger
Posts: 5
 
SData &include=accountmanager only works on a SingleResource RequestYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 11 8:44 AM
fiogf49gjkf0d

Using a single resource: (ID)
http://servername:3333/sdata/slx/dynamic/-/accounts('A6UJ9A001QJ4')?include=contacts,address,accountmanager

Multiple resources: (like operator)
http://servername:3333/sdata/slx/dynamic/-/accounts?where%20accountname%20like%20'%abc%'?include=contacts,address,accountmanager



The <AccountManager /> Tag returns all the values in the tag itself (like contacts, address) when I'm using the first url (single resource)
The <AccountManager /> Tag returns just the link, without actually containing the account manager's values.

I expect to have the values in the returned XML file from the accountmanager sames as I get it from contacts, address.

Is there a technical reason why the account manager "values" doen't get included into the payroll?

I would like to return all the needed values with one request ... instead looping through each account to grab the account manager's values.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: SData &include=accountmanager only works on a SingleResource RequestYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 11 3:25 AM
fiogf49gjkf0d

You've used a ? where you should ahev used a & in the second URL. CHange from this:


http://servername:3333/sdata/slx/dynamic/-/accounts?where%20accountname%20like%20'%abc%'?include=contacts,address,accountmanager


to this:


http://servername:3333/sdata/slx/dynamic/-/accounts?where%20accountname%20like%20'%abc%'&include=contacts,address,accountmanager


(Notice the change from ? to & before include)

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: SData &include=accountmanager only works on a SingleResource RequestYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 11 8:33 AM
fiogf49gjkf0d

Sharp eye Ryan, I had to look at it a third time to catch the error

[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): 4/29/2024 3:03:48 AM