Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger CreateNewAppRecordWhenContactCreated on Contact (after insert,after update) { public List<Application__c> appList = new List<Application__c>(); for(Contact con : Trigger.new){ Application__c app = new Application__c(); app.application_Name__c = con.Name; app.Phone__c = con.Phone; appList.add(app); } if(appList.size()>0 && appList != NULL){ insert appList; } }
Try with below code.may be it will help. Let me Known it working fine for you or not?