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
Rashika SinghRashika Singh 

How we can Create Approval Process in APex Class Using MetaData Api ???

About MetaData Api 
Naval Sharma4Naval Sharma4
Hi Rishika,

You can go through the following GIT Repository which is a perfect solution for Metadata APIs provided by Andrew Fawcett.

https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataServiceExamples.cls
AbhishekAbhishek (Salesforce Developers) 
Rashika try the code as mentioned in the below blog,

http://www.jitendrazaa.com/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks.