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: Copy Contact
Stephen Kennedy
Posts: 37
 
Copy ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 09 10:13 AM
I need to be able to copy a contact from one account to multiple other accounts. Is there an easy way to do this that I'm not seeing?

I can write the SQL to insert a new contact to those accounts, but I'm not sure how to generate a new ContactId?

Any advice would be appreciated.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Copy ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 09 10:49 AM
There is no way to Copy the Contact directly, but you could Implement a routine to do so, similar to:


IContact newContact = EntityFactory.Create();

newContact.FirstName = origContact.FirstName;
newContact.LastName = origContact.LastName;
...
...
newContact.Account = newAccount;
newContact.Save();

//No need to generate ID, the Object will generate it for you. If you need to get the ID, you can retrieve it after you Saved the contact
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Copy ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 09 10:53 AM
Ummm.....


I just recalled something, the MoveContact method has a CopyContact flag.

So, you could call the MoveContact function, and pass it a True on the CopyContact parameter. The code then does exactly what I mentioned regarding the Properties, it copies them one by one.
[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 6:21:28 PM