Salesforce Plaform Dev | Arjun | Apr 13,14,20,21,27,28 May 4,5,11,12,18

Discussion in 'Salesforce Certification' started by Vishesh_8, Apr 13, 2019.

  1. Vishesh_8

    Vishesh_8 Well-Known Member

    Joined:
    Jun 12, 2018
    Messages:
    85
    Likes Received:
    16
    Hello Everyone,

    Please put up your queries over here and save the thread URL for progress tracking. :)

    Happy Learning
     
    #1
    Arjun Gupta_1 likes this.
  2. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Thanks Vishesh :)
     
    #2
  3. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Week 1 :
    1. Draft Notes
    2. Agenda So Far
    All notes are zipped, please check attached
     

    Attached Files:

    #3
  4. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Extremely important by Salesforce , for Salesforce security understanding-


    Go through the entire series of short videos
     
    #4
  5. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Go through the below if you want to know more on Marketing cloud

     
    #5
  6. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Top 10 crm platform tools-
     
    #6
    Jayasree_2 likes this.
  7. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  8. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  9. Jayasree_2

    Jayasree_2 Member

    Joined:
    Apr 12, 2019
    Messages:
    2
    Likes Received:
    2

    Attached Files:

    #9
    Arjun Gupta_1 likes this.
  10. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hi Jayasree, sorry for the delay.

    I believe you are being redirected to a wrong URL
    Can you try typing : developer.force.com and hit enter?
    It will redirect you to : https://developer.salesforce.com/
    This is where you should be able to create an account.

    Let me know if this solves your issue

    Thanks
    Arjun
     
    #10
  11. Anitha Veerasekaran(4742)

    Alumni

    Joined:
    Feb 26, 2014
    Messages:
    1
    Likes Received:
    0
    Hi Arjun,
    I tried to create new Force.com project. Entered User name, Password, Security token and clicked on Next. Nothing happened. It didn't move to the next screen. It stays on the same window. Is there any specific Eclipse version I need to get ?
     
    #11
  12. Jayasree_2

    Jayasree_2 Member

    Joined:
    Apr 12, 2019
    Messages:
    2
    Likes Received:
    2
    Hi Arjun,

    I tried same and after couple of days it worked.

    Thanks
     
    #12
    Arjun Gupta_1 likes this.
  13. _57524

    _57524 Member

    Joined:
    Jan 25, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Arjun,

    we have a requirement,our client want a copy cpq quote custom button to clone the existing quote with the specific opportunity selected by user.

    Just wanted to know what will be the best way to achieve it,I mean should we uses batch processing feature or a traditional apex code considering there are PB,workflows on these quote and quoteline object also QueuelableCalculator service is enabled by default as a CPQ feature.We don't want these to get blocked and throw "unable to obtain access" error while cloning code runs.

    Thank You,
    Md.Shadab Khan
     
    #13
  14. Ramlal Dey

    Ramlal Dey Member

    Joined:
    Mar 29, 2019
    Messages:
    2
    Likes Received:
    0
    I am facing the same issue.....please help
     
    #14
  15. Janvi Devanshi

    Joined:
    Mar 12, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Arjun,

    Were you able to upload notes for last weeks session. If uploaded, I am not able to find it.

    Thank you.
     
    #15
  16. Janvi Devanshi

    Joined:
    Mar 12, 2019
    Messages:
    2
    Likes Received:
    0
    Hey Arjun,

    My laptop was crashed and needed format and now I am trying to install Eclipse and after installing plugins it doesn't show Force.com Project. Any idea what could be wrong?

    Thank you.
     
    #16
  17. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hey Shadab,

    Are you trying to do what an existing custom button functionality does? My approach would be to create an apex class and execute that in JS method. Because if you pick the approach with PB or flows then you would have lesser ability to scale it later to cater new requirements.
    I havent worked on CPQ yet, but i am assuming it would be a functionality (any) running which you would like to replicate. Let me know more about this in class if you like

    Regards
     
    #17
  18. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Just answered
     
    #18
  19. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hey guys!

    Attached zip file carries everything we did in week2
    Please go through slides and content once more offline!

    Cheers! :)
     

    Attached Files:

    #19
    Jayasree_2 likes this.
  20. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    #20
    Jayasree_2 likes this.
  21. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  22. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  23. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  24. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hey guys, that is unfortunate, did you try looking at the link for configuring Force.com IDE that i posted and followed my steps in the video in order. Lets see what we can do today anyway
     
    #24
    Jayasree_2 likes this.
  25. yogesh kumar_5

    Joined:
    Feb 12, 2019
    Messages:
    2
    Likes Received:
    0
    Hello Arjun,
    How do i get registered for PD1 certification Examination. Please tell me.
     
    #25
  26. RAGHAVENDHAR KAMSAI

    Alumni

    Joined:
    Aug 29, 2016
    Messages:
    2
    Likes Received:
    0
    Hi Arjun, Could you please help me on why trigger cannot contain the static keyword.Thanks.
     
    #26
  27. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hey guys! Sharing week 3 notes
     

    Attached Files:

    #27
  28. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    You can use static variables in trigger however they are not usually recommended. Some of the main reasons behind this is
    • It is bad practice to write logic inside your trigger, minimizing the amount of code in a trigger and instead implement all functionality in class.
    • Having static variables separated in a class will help you with the unit test by loading up the static variables with the required data and not rely on the fact that you have to trigger the trigger in order to populate with test data test your
     
    #28
    RAGHAVENDHAR KAMSAI likes this.
  29. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    You can use static variables in trigger however they are not usually recommended. Some of the main reasons behind this is
    • It is bad practice to write logic inside your trigger, minimizing the amount of code in a trigger and instead implement all functionality in class.
    • Having static variables separated in a class will help you with the unit test by loading up the static variables with the required data and not rely on the fact that you have to trigger the trigger in order to populate with test data test your scenario.
    • Also the most important thing to know about triggers is that when you have more than one trigger of the same type, you cannot predict the order in which they will fire. So if you have a static variable in a trigger that has a value that another trigger will depend on than you would have some problems.
     
    #29
  30. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Dynamic Allocation and instantiation of the class (polymorphism syntax)
    Type t = Type.forName(classNameString);
    InterfaceName obj = (InterfaceName)t.newInstance();
    Note, since you have to pass an object, you will have to instnatiate the class by actually assigning that object to a parent class (which can be virtual / interface or an abstract class)

    Hope this helps Shadab and Raghavendra who asked for it.
     
    #30
    RAGHAVENDHAR KAMSAI likes this.
  31. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    #31
  32. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    #32
    _57524 and Svetlana Naibok like this.
  33. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  34. Ramlal Dey

    Ramlal Dey Member

    Joined:
    Mar 29, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Anitha,

    I was facing the same issue..... after hit and try again and again i have just resolve the issue, i have tried the below step... please try it might help you.....

    Step 1: Please install java jdk version 8... like jdk-1.8.0 ( don't install any upper version like jdk-12 etc.)

    Step 2: go to ....My Computer -> Properties -> Advanced System Setting -> Advanced -> Environment Variables ->
    1> Add Variable : JAVA_HOME : Values- C:\Program Files\Java\jdk1.8.0_131(for my case.... it might be different for you... it is the location where your jdk is installed )
    2> Edit existing variables "Path" and append "C:\Program Files\Java\jdk1.8.0_131\bin(for my case.... it might be different for you... it is the location where your jdk is installed)" with its existing values

    Step 3: in the desktop right click on Eclipse icon -> Open File Location -> where u find eclipse.ini file -> edit it by notepad -> then add below before"-vmargs" like below:

    -vm
    C:\Program Files\Java\jdk1.8.0_131\bin\javaw.exe (for my case.... it might be different for you... it is the location where your jdk is installed)
    -vmargs

    ......then open the eclipse from beginning and give the all information then click "Next" it will work
     
    #34
    Last edited: May 1, 2019
  35. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    All i would request once again, that in order to avoid these problems please follow documentation, where it is told which JDK / JRE is required and the eclipse download links
    Here you go again for reference:
    https://developer.salesforce.com/docs/atlas.en-us.eclipse.meta/eclipse/ide_install.htm
     
    #35
  36. RAGHAVENDHAR KAMSAI

    Alumni

    Joined:
    Aug 29, 2016
    Messages:
    2
    Likes Received:
    0
    Arjun,

    1.Could u pls share the dumps for PD1.

    2.How to roll back the deployments.
     
    #36
  37. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hi Raghavendra,

    Unfortunately, i do not have any dumps neither i recommend using any for knowledge gaining sake :) It is useful though to go through generally available mock exams of pd1 on the web. Try that post completing this course and also do attempt the quiz of Simplilearn by EOC.

    Regarding rolling back deployments, there is no roll back feature in SFDC, you would need to create another deployment activity to undo the last changes released in PROD environments.
    Alternatively, you can always take a backup of the current source project in any IDE and then deploy that if anything goes wrong as part of any release.
     
    #37
  38. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Folks, Week 4 notes attached
     

    Attached Files:

    #38
  39. _57524

    _57524 Member

    Joined:
    Jan 25, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Arjun,

    Regarding after decimal trailing 0 issue related to Multi-currency implementation:

    Below custom Function (not working if calculated value is like 2567.00 the trailing 0 after decimal is truncated when currency formatting is done)

    public static String currencyFormat(String cur,Decimal val)
    {
    String v='';
    if(cur=='EUR')
    {
    v=String.valueOf(val.format()).replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v=v+' €';
    }
    if(cur=='USD')
    {
    v=String.valueOf(val.format()).replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v='$ '+v;
    }
    if(cur=='CAD')
    {
    v=String.valueOf(val.format()).replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v='C$ '+v;
    }
    if(cur=='GBP')
    {
    v=String.valueOf(val.format()).replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v='£ '+v;
    }
    return v;

    }

    #---------------------------------------------------------------------------------------------------------------------#

    To resolve the issue i created a two function to handle the above mentioned situation :

    /*CUSTOM FUNCTION TO FORMAT CURRENCY AS PER COUNTRY CODE ---*/
    public static String currencyFormat(String cur,Decimal val)
    {
    String v='';
    String leadingZero=LeadingZeroCheck(val);
    if(cur=='EUR')
    {

    v=leadingZero.replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v=v+' €';

    }
    if(cur=='USD')
    {
    v='$'+leadingZero;
    }
    if(cur=='CAN')
    {
    v='C$'+leadingZero;
    }
    if(cur=='GBP')
    {

    v=String.valueOf(leadingZero).replace('.','*');
    v=v.replace(',',' ');
    v=v.replace('*',',');
    v='£'+v;


    }
    return v;

    }


    /* CUSTOM CODE TOP FIX LEADING ZERO ISSUE -----*/
    public static String LeadingZeroCheck(Decimal val)
    {
    String o='';
    String strTest=String.valueOf(val.format());
    try
    {

    String[] arrTest = strTest.split('\\.');
    if(!arrTest[1].startsWith('0'))
    {
    if(Integer.valueOf(arrTest[1])>0 && Integer.valueOf(arrTest[1])<=10)
    {
    Integer x=Integer.valueOf(arrTest[1])*10;
    o=arrTest[0]+'.'+x;

    }


    else
    {
    o=strTest;
    }
    }
    else
    {
    o=strTest;
    }

    return o;
    }
    catch(ListException e)
    {
    return String.valueOf(val.format())+'.00';
    }

    }

    Note : The above implementation is working fine. Just wanted to know if there is any other simpler or good way to achieve this.

    Thank You,
    Md.Shadab Khan
     
    #39
    Last edited: May 10, 2019
  40. Jairaj Rachabattuni

    Jairaj Rachabattuni New Member

    Joined:
    Apr 23, 2019
    Messages:
    1
    Likes Received:
    0
    I am unable to join Webex yesterday (11-May-2019). I get
    This site can’t be reached

    I am able to login to the portal and browse but after clicking the Attend button I always see this error. I am not able to access today too (12-11-2019). I had raise an service request yesterday. They are just suggesting Clicking the Attend button. Kindly check what might be the issue.
     
    #40
  41. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Dear All

    Sharing Week 5 stuff for all!
    Hi Jairaj, Unfortunate to hear this, did you call or reach support directly ? This platform is just a community for you and all of us to interact for queries on Salesforce
    Reach support team for platform issues like webinar etc..
     

    Attached Files:

    #41
  42. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hey Guys!

    Thought to add more thoughts on the community billing project piece.
    What if we go with this assumption apart from the ones we made-

    Plan gets updated on a customer and then all the bills attached to the customer should be updated in Total Billing if the plan field change.
    In that case, you would need to traverse through the plan --> Customers --> Bills and then update the bills.

    This is a classic case of creating a map of all plan to their bills (plan is the ultimate parent)
    For any guidance to do this, you can check out how we did go from ultimate parent to child in the :

    PositionTrigger in my org
    Position goes to ---> Job Application ---> Reviews.
    This will get you started!
     
    #42
    Jayasree_2 likes this.
  43. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    HEADS UP ALL PARTICIPANTS / LEARNERS!

    This last session is going to be dedicated to learning couple of Lightning Components in terms of dev. But we are going to spend most time in making sure all submit their Projects!
     
    #43
    Jayasree_2 likes this.
  44. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
  45. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    All, Attaching Lightning notes from Session 9
    Feel free to download the Component Bundles i created in my environment :)
     

    Attached Files:

    #45
    Janvi Devanshi likes this.
  46. Minushree

    Minushree New Member

    Joined:
    Apr 12, 2019
    Messages:
    1
    Likes Received:
    0
    Hi Arjun,

    Hope you are doing good.

    I am still not able to make some of my Bill fields read only. Did you get a chance to look into that?. I submitted my project without achieving it.

    Also, Arjun can you please share some best practices in general, as you had mentioned one time in class.

    Thank you,
    Minushree
     
    #46
  47. Arjun Gupta_1

    Arjun Gupta_1 Customer
    Customer

    Joined:
    Jan 30, 2019
    Messages:
    34
    Likes Received:
    29
    Hi Minushree,

    Check out the below link, has some good stuff from the developer documentation:
    https://developer.salesforce.com/index.php?title=Apex_Code_Best_Practices&oldid=26856

    Also regarding your fields read only, not sure on how to check as i dont have access to your dev environment. I would recommend you to check FLS settings once more, else just describe your issue here once and give your org credentials

    Thanks
     
    #47

Share This Page