You need to sign in to do that
Don't have an account?
IntroAmmy
Write trigger on account to create opportunities when account record is created
Need to create opportunity record when x type of account (x is record type) is created and assign contact id of this account to Opportunity account I'd.
can someone help me on that
can someone help me on that
This below code is a basic outline of the trigger that you need to customize as per your requirement
This trigger will create an Opportunity whenever an Account with the specified record type is created. It assigns the Account's Contact ID to the Opportunity's Account ID field. You can add additional logic and field mappings as needed.
If this information helps, please mark the answer as best. Thank you
Hi IntroAmmy
Please refer to this code.
Please mark this as the best answer, if it helps.
Thanks