function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajesh NarayanaswamyRajesh Narayanaswamy 

When ever a new contact is created submit the record for approval to ‘Ramana P’

Hi all.
can someone help me hoe to write a trigger for this requirment and how to cover test with 100%
Ashish Singh SFDCAshish Singh SFDC
Hi Rajesh,

You can achieve this functionality with Process Builder and Approval Process.

Develop a Process Builder and from Immediate Action call the Approval Process. 

Ex =>  Invoke Approval Process from Process Builder (https://caitlinmarshall.wordpress.com/2015/01/24/approval-process-automation-with-salesforce-lighting-process-builder/)
Ex => Create Approval Process in Salesforce (https://trailhead.salesforce.com/content/learn/modules/business_process_automation/approvals)

Thanks,
Ashish Singh.