Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 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: Get Next Id in 7.5.2 Web
Jason Daraz
Posts: 12
 
Get Next Id in 7.5.2 WebYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 10 3:17 AM
Sorry if this has been asked already, I tried searching for it but couldn't find it.

Is there a way to get the next ID for a table like the getIdFor function in the LAN?

Thanks
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Get Next Id in 7.5.2 WebYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 10 10:29 AM
Ryans ever helpful article here:

http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=87

Use the c# example.

Or if you are working with an entity, use the entityfactory...
..SO for a new contact

Sage.Entity.Interfaces.IContact con = Sage.Platform.EntityFactory.Create();

con.Porperties.....etc.
con.Save();

Now got a new contact with a new SLX id.

Syntax off the top of my head but looks about right.

Thanks,
Nick

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Get Next Id in 7.5.2 WebYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 10 10:31 AM
Its taken out some angled brackets after the Create but before the ():

Should "open-angle-bracket"Sage.Entity.Interfaces.IContact"close-angle-bracket"

Thanks,
Nick
[Reply][Quote]
Jason Daraz
Posts: 12
 
Re: Get Next Id in 7.5.2 WebYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Feb 10 3:47 AM
Thanks Nick,

I noticed it took the angle brackets out of some of my code recently, if you the HTML entity codes for the symbols they work ok:

Ampersand Hash 60 Semi-colon = <
Ampersand Hash 62 Semi-colon = >
[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): 7/1/2025 12:36:11 AM