Salesforce PD1 Arjun Gupta 7th June, 20

Discussion in 'Salesforce Certification' started by Arjun Gupta_1, Jun 6, 2020.

  1. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    For students
     
    #1
    ROSHNI PAL likes this.
  2. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Arjun, where do i write an apex class in Salesforce. ANd how do i execute it?
     
    #2
    ROSHNI PAL likes this.
  3. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 1 Draft Notes
     

    Attached Files:

    #3
  4. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 2 Notes shared + i will share some links for admin stuff tomorrow too :)
     

    Attached Files:

    #4
  5. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Hi All,

    I would encourage you to all to do some administration basic learning every week :) Just do one badge of learning (from trailhead - a wonderful area for many learning resources of Salesforce)
    I will post couple of admin topics every week along with the development learning you are already doing

    1. User Management
    https://trailhead.salesforce.com/en/content/learn/modules/lex_implementation_user_setup_mgmt

    2. Data Security
    https://trailhead.salesforce.com/en...ix_slug=build-your-admin-career-on-salesforce

    The second link in particular is very exhaustive, so i would keep these two links as something that you can take complete two weeks to cover before i publish more.

    Good luck on this self learning along with your class work practice
     
    #5
  6. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    login.salesforce.com
    arjun@june.com / simpli@123

    And the notes of day 3
     

    Attached Files:

    #6
  7. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 4 notes
     

    Attached Files:

    #7
  8. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    #8
  9. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
  10. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 5 Notes
     

    Attached Files:

    #10
  11. Anuja Krushanrao Lawankar

    Joined:
    Jun 5, 2020
    Messages:
    2
    Likes Received:
    2
    Hello Arjun,

    I am not able to see my recruitment application on classic view as I already created in Lightning view. But I can only see my record and object on left side of the screen

    please find the attachment below.
     

    Attached Files:

    #11
    Arjun Gupta_1 likes this.
  12. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Hi ANuja, hope i answered you in the session :) ?
     
    #12
    ROSHNI PAL likes this.
  13. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 7 notes
     

    Attached Files:

    #13
    ROSHNI PAL likes this.
  14. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 8 notes all :)
     

    Attached Files:

    #14
    ROSHNI PAL likes this.
  15. Sushanto Calatur

    Sushanto Calatur Active Member

    Joined:
    Apr 11, 2020
    Messages:
    16
    Likes Received:
    7
    Hi Arjun,

    When I try to do a DML add getting an error

    DML Second Class

    public class DMLSecond {
    public List<Contact> conList;
    public Map<Id, Contact> conMap;
    //Constructor
    public void DMLSecond(){
    conList = new List<Contact>();
    conMap = new Map<Id, Contact>();
    }
    public void initiateDMLOperations (){
    //Step1 - Run SOQL Query
    Id recordID = queryAccount();
    //Step2 - Insert Contacts
    insertContacts(recordID);
    }
    //Method to run SOQL query
    private Id queryAccount(){
    Account accQuery = new Account();
    accQuery = [select id, name FROM Account where Name = 'June 14 Company: 3'];
    System.debug('The query we ran gave the result ID as '+accQuery.Id);
    System.debug('The query we ran gave the result ID as '+accQuery.Name);
    return accQuery.Id;
    }
    //Method to insert
    private void insertContacts(Id RecId){
    Account Acc = new Account();
    for(Integer i=1;i <6; i++){
    Contact conToAdd = new Contact();
    conToAdd.Lastname = 'Contact from'+System.today()+'Number '+i;
    conToAdd.AccountId = RecId;
    //System.debug('The Contact Name is: '+i);//conToAdd.LastName+'. Belonging to the Account Id: '+conToAdd.Account);
    conList.add(conToAdd);
    }
    INSERT ConList;
    }
    }

    Anonymous Code
    DMLSecond dmlobj = new DMLSecond();
    dmlobj.initiateDMLOperations();

    Error I am getting
    Line: 36, Column: 1
    System.NullPointerException: Attempt to de-reference a null object

    While I will try to look at your code and try to copy it, not sure why the conList will be Null since I have initialized in the constructor.
     
    #15
    ROSHNI PAL and Arjun Gupta_1 like this.
  16. Sushanto Calatur

    Sushanto Calatur Active Member

    Joined:
    Apr 11, 2020
    Messages:
    16
    Likes Received:
    7
    ______

    Did the following changes to the insert method
    1. updated the LastName to have string values only (converted integer & date to string)
    2. Had to initialize the List-> conList in this method to resolve the issue.

    The question is, I thought we had the constructor initialization to ensure we don't have null value in this List when we use it in this class (object).
     
    #16
    ROSHNI PAL and Arjun Gupta_1 like this.
  17. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Sent you an email, please send me creds there
     
    #17
    ROSHNI PAL likes this.
  18. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Sent you an email, please send me creds there
     
    #18
    ROSHNI PAL likes this.
  19. Anuja Krushanrao Lawankar

    Joined:
    Jun 5, 2020
    Messages:
    2
    Likes Received:
    2
     
    #19
    ROSHNI PAL likes this.
  20. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Day 9 notes
     

    Attached Files:

    #20
    ROSHNI PAL likes this.
  21. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    175
    Likes Received:
    91
    Requirement number 7 (update) and day 10 notes
     

    Attached Files:

    #21
    ROSHNI PAL and Mandakini Bhuyan like this.
  22. Vijay_357

    Vijay_357 Member

    Joined:
    Mar 16, 2020
    Messages:
    2
    Likes Received:
    0
    Hi Arjun,

    How can we add a 'Cancel' button on the Create Bill form which would return us to the default view?
    I tried invoking 'setDefaultViews' method on the 'Cancel' button. But it gives the error asking for the mandatory fields to be filled

    upload_2020-7-10_0-17-23.png
     

    Attached Files:

    #22
  23. Vijay_357

    Vijay_357 Member

    Joined:
    Mar 16, 2020
    Messages:
    2
    Likes Received:
    0
    Hi Arjun,

    I'm facing one issue, when I type something on the search text and press 'Enter'. Then instead of searching for the bills, the Create Bill form opens up.

    upload_2020-7-10_0-31-2.png


    upload_2020-7-10_0-31-30.png
     

    Attached Files:

    #23
  24. Sagar Grover_1

    Joined:
    Apr 9, 2020
    Messages:
    2
    Likes Received:
    0
    Hii guys, I have completed my documentation and my login credentials are there and open for all. please don't make any changes and take help as you want.
     
    #24

Share This Page