Code Reprository Management
Jul21

Code Reprository Management

This blog is for an Intermediate developer who is planning to do Salesforce backup and code management using Git. Unlike Java Salesforce does not have a code versioning system. I am going to demonstrate how we can use Git and Eclipse(Local code base) to have this code management in place. Step 1 : We have a Requirement to create a new Lead source as Web2. Developer have done some changes based upon a requirement and have marked the ticket #227(Hypothetical) as done in project management tool.Quality Analyst(QA)  got this ticket #277(Hypothetical) .To test in order to test the ticket she created lead and set the value of Lead source as ‘Web2’ as we were told to do so. Screenshot below: Step 2 : QA will ‘retrieve’ code from Sandbox using Eclipse Force.com IDE tool to do the task. Next QA will retrieve the class from sandbox in order to do that go to eclipse click File > New > Force.com Project Now Type a project name then type your organization’s Username and Password and if you have the security token you can add it too in the next field but if you don’t have the security token you can create one from your org or you can whitelist your IP to skip the security token part. Fill the correct details then click Next. Next step is to select the metadata you want to retrieve from the Sandbox and then click OK. You can now see the metadata which you have retrieved in your local system. Question 3 : Describes the steps to ‘commit’ to local repository, what tools did you use?                                                                                  And Question 4 : Describes the steps to ‘push’ to remote  repository,what tools did you use? Solution : We used Eclipse to do this task as well  What we did to implement the logic: Step 1 : First of all we have installed Git plugin for eclipse for deployment and retrieval process. To do so we have followed these following steps: 1.1. In Eclipse(any version), Go to help > install new software. Click on Add New button name the Repository(any) and copy and paste this url in the location field url : http://download.eclipse.org/egit/updates Next Install the available softwares. 1.2. Now go to Window > Perspective > Open Perspective > Other  or Click on perspective link and select Git from the available list. Than click Clone Repository button. 1.3....

Read More
Salesforce Code Move Strategy
Jul16

Salesforce Code Move Strategy

Salesforce code move from sandbox to production. Code Move Strategy: Step 1: Check the existing production code coverage by “Run All Test”. Step 2: Lookout for test class failures if any. Step 3: List out the Batch jobs running in production. Step 4: Compare the code between production and Sandbox before working on it. If any differences found report it to your end Client/Manager. Step 5: Make sure if you are deploying an apex code its code coverage should be above 85%. Step 6: Use Changeset for small size deployment with less components. Keep the changeset names in a well defined order. Step 7: Use Eclipse or Ant Migration tool for deployment with many components.If you have the privilege of Full copy sandbox use it for trial deployment and go live. Full copy Sandbox gives you an advantage of less risk more effort based deployment process. Step 8: Deactivate the necessary batch jobs and Validation Rules before deployment. Step 9: Make sure the deployment is in the right time slot when end users are not working or keep the team informed for any surprises that may come while deployment or after that. Step 10: Validate and Deploy. Reactivate the Jobs, VRs etc. Step 11: If possible test the deployment in production or ask the respective feature manager to test it in production and report...

Read More
Salesforce Data Model and Management Platform Developer Part 2
Jul16

Salesforce Data Model and Management Platform Developer Part 2

Course Name: SFDC Platform Developer I Lesson No. 2 Data Modeling and Management Ajay Dubedi Salesforce Expert Video Contains- Salesforce CRM Standard Data Model, Entity Relationships and how to create them. http://www.ajaydubedi.com/featured/da… http://www.ajaydubedi.com/featured/da… http://www.ajaydubedi.com/featured/da… Skype: ajay.dubedi Email: ajaydubedi@gmail.com Phone: +1 (415)...

Read More