+ Start a Discussion
footprint_ninafootprint_nina 

Auto-populating contacts from accounts

I am new to s-controls and not sure if they can do this, but i was wondering if it is possible to create an s-control that will create and populate new contact when a person account is created?

 

thanks,

Nina

 

Cool_DevloperCool_Devloper

yes you can do this in an S-Control but i think, Trigger would be a better and more robust option!

 

Cool_D

footprint_ninafootprint_nina

Can you offer any advice on how to create such a trigger?

 

Thanks!

Cool_DevloperCool_Devloper

Hi,

You can write a trigger "afterInsert" on Account wherein you can create the requisite contact.

For syntax and info related to Triggers, you can refer to the apex guide. Lot of basic stuff there to give you a good heads up!

Cool_D