Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 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 Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: GetIDFor help please
Marc Johnson
Posts: 252
 
GetIDFor help pleaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 06 10:54 AM
fiogf49gjkf0d
I'm trying to add both a Mailing and Street address in an import script. I'm using the following:

strAccountID = Application.BasicFunctions.GetIDFor("Account")
strMAddressID = Application.BasicFunctions.GetIDFor("Address")
strPAddressID = Application.BasicFunctions.GetIDFor("Address")

Both strMAddressID and strPAddressID end up being the same ID.

What's going on?
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: GetIDFor help pleaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 06 5:55 PM
fiogf49gjkf0d
Are you on a version higher than 6.2.3? If so could you use the SLXProfiler.exe and see if it increments a value in the SITEKEYS table with each GetIDFor call?

I can guarantee 2 subsequent GetIDFor calls work for one of my custom tables. It has to according to my design (I create a mirror primary key linking 2 records to each other). I'm not entirely certain of the effects of using it on a system table like Address or Account. It's supposed to work.
[Reply][Quote]
Rick Smith
Posts: 96
 
Re: GetIDFor help pleaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Nov 06 5:52 AM
fiogf49gjkf0d
I tested the code in our database (6.2.3) and found that the two address id's were different, so there's something odd about your db. Also note that the SLXProfiler exists in 6.2.3.
[Reply][Quote]
Marc Johnson
Posts: 252
 
Re: GetIDFor help pleaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Nov 06 7:25 AM
fiogf49gjkf0d
Sorry guys, on further inspection (its not my code originally) I see that the GetIDFor works it's just the rest of the code that's not working as expected. I love trying to figure out someone else code.
[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/27/2024 12:45:36 AM