Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 2025 
 
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 - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Confusion about Saleslogix Web Platform
Brandi Williams
Posts: 3
 
Confusion about Saleslogix Web PlatformYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 May 10 11:09 AM
HI!

Apologies in advance if this is a silly question, but I've been unable to find the answer elsewhere.

My boss really wants me to use the provided framework to insert records into our SalesLogix database. I'm working in C#, and here is the example code I'm working off of: http://customerfx.com/pages/crmdeveloper/2009/01/29/programatically-adding-a-new-record-in-saleslogix-web.aspx

The problem is I'm trying to use this in a windows service. First off is this even possible to do? If the answer is no, great, I saw the article on generating new keys, I can just do that by hand.

However, if it is possible with some finagling, where do I start? All the applications/examples I've looked at have been web examples, which use connection.config. (So how do I establish a connection from a non-web application for a start?)

Thanks in advance - even a simple yes or no will help infinitely.

(Also, would appreciate no 'why would you want to do that?' answers... I am a code monkey just doing what I'm asked to. )
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Confusion about Saleslogix Web PlatformYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 May 10 11:31 AM
That article does not apply to your Code.
That article is for code written within the SLX Web client.

You mentioned that you are building a Windows service, so you need to use the SLX OLEDB Provider.
Basically, you use ADO.NET OleDb libraries as normal, and use the SLX OleDb Provider. Just build a connection string with the necessary connection infor and credentials and write your SQL queries.

[Reply][Quote]
Brandi Williams
Posts: 3
 
Re: Confusion about Saleslogix Web PlatformYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 May 10 11:59 AM
Raul, thanks for the quick reply!

Well, that's just what I've been given as a resource... as I said, I don't have any resources that are not for the web.

I think what you are implying is that stuff like the following is only for web applications:

Sage.Entity.Interfaces.ILead lead = Sage.Platform.EntityFactory.Create();
//...assign the fields, etc
lead.Save();

Am I understanding correctly?

I'm currently using the OleDbConnection to generate new table keys, and thus am already using SLX OLEDB Provider in my project. I can certainly create commands to execute directly on the database, that's no problem. If this is the way to go, then great, problem solved. Main issue was that I was told to use the above code if possible to do so.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Confusion about Saleslogix Web PlatformYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 May 10 12:13 PM
Yes, that code is exclusively for use Internallyl within the SLX Portal.

If you are looking for alternate ways to read/write data into SLX, you could use the SData interfaces, but that may be a bit more work.

Otherwise, if you know the tables you are in need of writing data, just create your SQL Insert/Update statements and run them through the Provider.
[Reply][Quote]
Brandi Williams
Posts: 3
 
Re: Confusion about Saleslogix Web PlatformYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 May 10 12:15 PM
Thanks so much, it is clear to me now!
[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 © 2025 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): 6/30/2025 10:17:19 AM