Day 3 Assignment
Dec28

Day 3 Assignment

I have created 5 days Salesforce based assignment this is third 3rd day I hope you have already finished 1st and 2nd day. If not it is highly recommended to finish the blog-1, and blog-2 part 1 & part 2  first. The assignment is in format of a typical Salesforce requirement, comparable to a small size project. Please go through the requirements which are well defined and should be easily understood if you have a basic understanding of Salesforce sales and service cloud. Your data model design or solution approach to the requirements might be different from the answers provided here. Every solution is correct if you are fulfilling all the requirements. Requirement: We have a university “St Judes” which wants its salesforce account to get configured by us. Following are the requirement of this client.   1. Since Student and Course are having a many to many relationship, the Junction object will have several fields representing the Student’s performance in those Courses. A Student will have the Status of PASS or FAIL and MARKS OBTAINED for each of its Course as well. Click here to learn more For this solution make a picklist having name Status and values PASS or FAIL and a number field named Marks Obtained in the junction object this will do the trick.   2. All the Professor will get an email 2 days before the Course completion asking the Professors to provide marks to those Students in its Course. Click here to learn more For this what i have done is first create a email field in in Professor and Course object and made the email field mandatory. Than I have created a trigger on Course to auto update the email field in the Course object with Professors email. I hope you have done part-1 and part-2 already and you have already created a trigger on course the best practices tells us that we should not make more than one trigger on a single object. So update this part also in your trigger and this part will auto update the email field in Course object with the email field in Professor.   Trigger: Map<Id, Course__c> profCourseMap = new Map<Id, Course__c>(); List<Course__c> fullCourseList = [SELECT Id, Name, Professor_del__c, Professor_Email__c FROM Course__c WHERE Id IN: Trigger.newMap.keySet()]; for (Course__c course : fullCourseList) { if (Trigger.isInsert) { profCourseMap.put(course.Professor_del__c, course); } if (Trigger.isUpdate && Trigger.oldMap.get(course.Id).Professor_del__c != course.Professor_del__c && course.Professor_del__c != NULL) { profCourseMap.put(course.Professor_del__c, course); } } System.debug(‘profCourseMap————–‘ + profCourseMap); System.debug(‘profCourseMap————–‘ + profCourseMap); List<Course__c> listToBeUpdated = new List<Course__c>(); List<Professor__c> mainProfList = [SELECT Name, Email__c FROM Professor__c WHERE Id IN: profCourseMap.keySet()]; for (Course__c course : profCourseMap.values()) { for (Integer i = 0;...

Read More
Salesforce Developer Interview Tips
Sep15

Salesforce Developer Interview Tips

Be Smart In Attitude & Intelligent In Aptitude Smartness is one of the key factor for successful interview. A lot can be easily measured from the attitude of a particular person. A person should have attitude of a good listener to  understand the questions being asked. During the process of an interview always be instantly ready with smart and intelligent answers. Remember in Salesforce a particular operation, task or problem can be resolved by multiple ways. You should always be smart enough to understand the requirement or the problem and give a solution which can be implemented with a minimum configuration or development changes. The solution we suggest should fit in the Process and not cause any unexpected results. In an interview it’s better to come up with more than one solution and it will also show how much experience you have. To say this in other words you should always have at least 1 average normal solution and one excellent solution. Be Ready For Programming Although Salesforce developers are not supposed to know programming in detail but still an ideal Salesforce programmer or developer should be capable enough to write triggers, visualforce pages and do configurational changes. Programming questions like write a trigger, bulkify a trigger, write a visualforce page, implement a batch class etc all can be the possible set of questions in the interview itself. Salesforce governor limits can also be a tricky interview topic. Question with multiple possibilities can tend you towards finding a programmable solution like a trigger or a visual force page rather than the solution can also come up from Salesforce out of box functionality. Following Programming questions can be useful starting point. Be Precise With Practical Examples Rather Than Theoretical Having practical knowledge shows the experience you have gained while doing several projects. When an interviewer ask you a question, the question belongs to the practical problem which he or she might have faced or learnt that can be a problem for a new developer. Always remember a real world problem can always be solved by breaking it down into sub-problems and solving them. With a practical example or solution belonging to your project experience will help you a lot in getting good scores. Its wise to Learn from others mistake blog can be a good starting point for practical examples. Be Puzzle Solver Than Just Another Developer. Puzzle solving is a good habit. Solving puzzles related to programming world will give you insight to lots of other verticals. The best way you can be a good puzzle solver is by going through different requirements and solutions. While doing a requirement analysis it’s...

Read More