
Apex Class - Metadata API - copy Lead fields to another object
- or -
Post a project like this956
£210(approx. $280)
- Posted:
- Proposals: 8
- Remote
- #3832586
- OPPORTUNITY
- Awarded
♛ TOP Rank Website Developer |Graphic Designer |Digital Marketer |Zoho| Salesforce

Top-Rated Video Editor | Graphic Designer | Motion Graphics Expert | Adobe Premiere Pro & After Effects Specialist

WordPress Expert✮Shopify Expert✮Graphic Designer✮AutoCAD 2D & 3D✮CV Writer & Designer✮Fullstack developer

♛ PPH No. #1 ♛ 21Years of Experience in Web Development , Web Designing, Magento , Shopify, WordPress , API Integration, Full-Stack Ruby on Rails Developer,AngularJS / Node.js


♛ Most Trusted #1 Team |19+ years of expertise in Website, Mobile Apps, Desktop & Console Games. Wordpress, ReactJS, Shopify, Laravel, Python, React Native, Flutter, Unity, Unreal Engine and AR/VR




24392268146356363657370795324065311700055041591128342





Description
Experience Level: Intermediate
Estimated project duration: less than 1 week
I need an Apex class (and unit tests). I want to be able to execute a method on the class from the Developer Console to copy custom Lead fields to a custom object called Request__c.
You must utilise this wrapper class for the Salesforce metadata api - https://github.com/financialforcedev/apex-mdapi.
The class method should –
1. Read all the custom fields on the Lead object and add identical fields on a custom object called Request__c.
2. If a field with the same api name already exists on Request__c it should skip and not fail/error
3. Work for the following field types: - Checkbox, Currency, Date, Date/Time, Email, Number, Percent, Phone, Picklist, Picklist (Multi-Select), Text, Text Area, Text Area (Long), Text Area (Rich), URL
4. Create numeric or currency fields with the same precision/decimal places
5. Create text/long text fields with the same length
6. Should copy the required/not required property
7. Create picklists with the same values and api names (which may be different)
7. Create picklists with the same restricted/unrestricted property
9. Set field access to visible for all custom profiles and System Administrator
10. Include unit tests with appropriate coverage for deployment
I have a Developer org with some test fields setup on the Lead and you will have access to this.
You must utilise this wrapper class for the Salesforce metadata api - https://github.com/financialforcedev/apex-mdapi.
The class method should –
1. Read all the custom fields on the Lead object and add identical fields on a custom object called Request__c.
2. If a field with the same api name already exists on Request__c it should skip and not fail/error
3. Work for the following field types: - Checkbox, Currency, Date, Date/Time, Email, Number, Percent, Phone, Picklist, Picklist (Multi-Select), Text, Text Area, Text Area (Long), Text Area (Rich), URL
4. Create numeric or currency fields with the same precision/decimal places
5. Create text/long text fields with the same length
6. Should copy the required/not required property
7. Create picklists with the same values and api names (which may be different)
7. Create picklists with the same restricted/unrestricted property
9. Set field access to visible for all custom profiles and System Administrator
10. Include unit tests with appropriate coverage for deployment
I have a Developer org with some test fields setup on the Lead and you will have access to this.

Satellite 360 Ltd
100% (3)Projects Completed
7
Freelancers worked with
8
Projects awarded
24%
Last project
28 Oct 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies