+ Start a Discussion
Nick VerschuerenNick Verschueren 
I'm doing the Lightning Experience Reports & Dashboards Specialist Superbadge and all was going fine, did a big part of the challenges, and suddenly while doing the dashboard, I get this error and can't seem to get past it....

"Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: UXHPPPDB"
User-added image
Is there a way to fix this without having to start all over again in a new playground?
Best Answer chosen by Nick Verschueren
Sebastian ChristowSebastian Christow
I had the same problem. I have tried 4 times and finally worked.
S.
Sohan ShirodkarSohan Shirodkar 
I have used case-assignment rules to assign cases automatically to the right user/queue based on certain conditions. 

Recently I was going through Trailhead content on omni-channel and various routing mechanisms (skill based, queue based). Following statement from trailhead confuses me : "Omni-Channel always assigns cases to the right support agents, and customers are happy with customer service. ".

If we already have case-assignment rules in place, why do we need omni-channel queue based routing? How are the two things different?
Best Answer chosen by Sohan Shirodkar
SwethaSwetha (Salesforce Developers) 
HI Sohan,

A case assignment rule in Salesforce.com is really a grouping of rules that will help you automatically assign cases throughout your support organization based on criteria captured on the case records. Each assignment rule can have multiple rule entries.

In Omni-Channel, work items are automatically routed or “pushed” to agents who are assigned to the appropriate queue. Incoming work items are routed to the agent with the least amount of open work. When work items all consume 1 capacity, the agent with the lowest number of work items receives incoming work.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks
Nicolai NonnenbroichNicolai Nonnenbroich 

Hi everyone,

With a lot of help from this forum, I got my first invocable method to work but now I am stuck on writing the test class for it.

Here's my invocable method and the attempted test class:

global class CreatedDateWithinBusinessHours {
        @InvocableMethod(label = 'Created Date is within BH' description = 'Check if flow record Created Date is within business hours')
            public static List<Results> execute(List<Requests> requestList) {
           
            // Get the default business hours
            BusinessHours bh = [SELECT Id FROM BusinessHours WHERE IsDefault = true];
            
            // Pass the Created Date Time of the flow Record
            Datetime targetTime = requestList[0].inputCreatedDateTime;

            // Boolean that returns true if date time is within Business hours
            Boolean isWithin = BusinessHours.isWithin(bh.id, targetTime);

            // Results object that holds the return values
            Results response = new Results();

            //Add the return values to the Results object
            response.outputMember = isWithin;

            //Wrap the Results object in a List container 
            List<Results> responseWrapper = new List<Results> ();
            responseWrapper.add(response);
            return responseWrapper;
    }

    global class Requests {
        @InvocableVariable(label = 'Created Date Time' description = 'Created Date of the Flow record' required = false)
           global Datetime inputCreatedDateTime;
        
    }
    global class Results {
        @InvocableVariable(label = 'Within Business Hours' description = 'Boolean that returns true if the Created Date is within Business Hours' required = true)
        public Boolean outputMember;
    }
}


@isTest
private class CDwithinBusinessHoursTest {
    static testMethod void validateCDBusinessHours() {
       
        Case  c = new Case ();
         
        Datetime recordCD = c.CreatedDate;
       
          insert c; 
        
        List<Datetime> requestList = new List<Datetime>();
        requestList.add(recordCD);
       
        Test.startTest();
         
        //Getting this error here: Method does not exist or incorrect signature: void execute(List<Datetime>) from the type CreatedDateWithinBusinessHours
        CreatedDateWithinBusinessHours.execute(requestList);
        
           Test.stopTest();
        
        //Variable does not exist: outputMember             
           System.assert(outputMember);
       
   }
}    

Best Answer chosen by Nicolai Nonnenbroich
Maharajan CMaharajan C
Hi Nicolai,

Please try the below test class:
 
@isTest
private class CDwithinBusinessHoursTest {
    static testMethod void validateCDBusinessHours() {
        List<CreatedDateWithinBusinessHours.Requests> requestList = new List<CreatedDateWithinBusinessHours.Requests>();
        CreatedDateWithinBusinessHours.Requests req = new CreatedDateWithinBusinessHours.Requests();
        req.inputCreatedDateTime = system.now();
        requestList.add(req);
        Test.startTest();
        List<CreatedDateWithinBusinessHours.Results> responseList = CreatedDateWithinBusinessHours.execute(requestList);
        Test.stopTest();
        system.assert(responseList.size()>0);
    }
}

Thanks,
Maharajan.C
WonJeungWonJeung 
Hello, I'm new to Lightning Components and I decided to create a calculator using Lightning Components.
Given two numbers, when I click "Add" the result should be displayed.

Here's the code:

calculator.cmp
<aura:component >
    <aura:attribute name = 'num1' type = 'Integer' default = '15'></aura:attribute>
    <aura:attribute name = 'num2' type = 'Integer' default = '20'></aura:attribute>
    <aura:attribute name = 'sum' type = 'Integer'></aura:attribute>
    <div>
        <p>Add</p><lightning:button label = 'Add' onClick = '{!c.add}'/>
        <p>{!v.num1} + {!v.num2} = {!v.sum}</p>
    </div>
</aura:component>

calculatorController.js
({
    add : function(component, event, helper) {     
        //Add numbers
        var num1 = component.get('v.num1');
        var num2 = component.get('v.num2');
        var sumResult = num1 + num2;
        component.set('v.sum', sumResult);
        
    }
})

The add result doesn't show up when I click the button. It'd be great if someone helps! Thanks!
Best Answer chosen by WonJeung
Ajay K DubediAjay K Dubedi
Hi WonJeung,
Change your onClick - > onclick.  In your case the controller method was not fire.
Please try below code it works fine for me and let me know if this works for you. If still need modifications do let me know.

Component :
<aura:component >
    <aura:attribute name = 'num1' type = 'Integer' default = '15'></aura:attribute>
    <aura:attribute name = 'num2' type = 'Integer' default = '20'></aura:attribute>
    <aura:attribute name = 'sum' type = 'Integer'></aura:attribute>
    <div>
        <p>Add</p><lightning:button label = 'Add' onclick = '{!c.addMethod}'/>
        <p>{!v.num1} + {!v.num2} = {!v.sum}</p>
    </div>
</aura:component>



Controller :
 
({
    addMethod : function(component, event, helper) {     
        //Add numbers
        var num1 = component.get("v.num1");
        var num2 = component.get("v.num2");
        console.log(num1);
        console.log(num2);
        var sumResult = num1 + num2;
        component.set('v.sum', sumResult);
        
    }
})



I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Pooja UpadhyayaPooja Upadhyaya 
Hello All  ,

I am preparing for Salesforce 201 certification .Please help me in finding appropraite material for the certification .

Thanks
Pooja Upadhyaya
Best Answer chosen by Pooja Upadhyaya
Amit Chaudhary 8Amit Chaudhary 8
Hi Pooja,

Please check all below link. I hope that will help you
http://sfdcgurukul.blogspot.in/p/salesforce-certification-dumps.html
http://www.proprofs.com/quiz-school/story.php?title=sfdc-adm-201-practice-exam
http://www.tquila.com/blog/2014/12/01/how-pass-adm-201-salesforce-certification-your-5-step-guide
https://success.salesforce.com/answers?id=90630000000gnNZAAY
http://focusonforce.com/salesforce-adm-201-exam-questions/
https://ctom971yahoo.wordpress.com/2015/03/24/salesforce-adm-201-pdf-dumps/
I found these exams very helpful when I was studying for my ADM 201 exam. These are not officlally provided by Salesforce, but I found the questions to be similar in style to the actual exam.

http://bulkified.com/Certifications/?certificationId=1
http://forcecertified.com/certifications/certified-administrator/practice-exam/
http://www.proprofs.com/quiz-school/story.php?title=sfdc-adm-201-practice-exam
http://www.proprofs.com/quiz-school/story.php?title=sfdc-adm-201-practice-exam-2


Please let us know if above link will help u

 
Diego OlveraDiego Olvera 
Hi everyone,
I'm working with a lightning component and it's working cool but I want to know if it's possible to disable certain days from a datepicker (weekends).
I did something similar but just for past days. 

I've reading that could be possible using jQuery but I can't find a good "documentation" about that, 

Thanks. 
Regards. 
Best Answer chosen by Diego Olvera
Maharajan CMaharajan C
Hi Diego,

Yes you can do this by using the external JS. Refer the steps mentioned in below link except the JS controller. To restrict the weekend we need the changes in controller JS.
http://sfdcmonkey.com/2018/02/23/restrict-past-dates-lightning-component/


Follow the below steps:

1.   Download the JS from the below file and then upload it in your Static Resorce .(  Name the Static Resource as : jquery224  )
https://code.jquery.com/jquery-2.2.4.min.js

2. Download the below JS zip file and then upload it in your Static Resorce .(  Name the Static Resource as : jQuery_UI  )
https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip

3.  Create the Aura Component as mentioned in below LInk: ( Don't use the Controller from the below Link just copy .cmp file) 
http://sfdcmonkey.com/2018/02/23/restrict-past-dates-lightning-component/

4.
Change the JS Controller as below:

({
    scriptsLoaded : function(component, event, helper) {
        $(document).ready(function(){ 
            //Restrict past date selection in date picker  
            $( "#datepickerId" ).datepicker({
                beforeShowDay: function(date) {
                    var show = true;
                    if(date.getDay()==6||date.getDay()==0) show=false
                    return [show];

                },
            });           
        });
    },
    
    getVal : function(component,event,helper){
        // to get selected date value using jQuery  
        var oDate = $('#datepickerId').val();
        alert(oDate);
        
    }  
})

Thanks,
Maharajan.C

 
Rahul Singh Rana 9Rahul Singh Rana 9 
Hello,

I have complete both requirements of PD 2 certificate, MCQ and Trailhead Badges. I have also linked my Webassessor account with trailhead account. It has been almost one week and I am still waiting for my certificate. I have raised mutiple cases for this but no response. My questions are :

1) Is it common for certificate to arrive late or is it just my case, please let me if anyone of you faced similar situation.
2) Is there any way to reach certificate team apart from guided help on the website.

Also any guess why does it take so long to award this certificate, once you have completed all the requirements. For example in case of proctored exam the certificate is awarded immediately. 

Best Regards,
Rahul
Best Answer chosen by Rahul Singh Rana 9
jigarshahjigarshah
Rahul,

I am glad that the PD2 certificate arrived for you. If you intend to learn about CPQ here are the resources you could use.
  1. Salesforce CPQ Basics Trailhead Module (https://trailhead.salesforce.com/en/modules/sf_cpq)
  2. Moreover, the Salesforce Partner Community (http://partners.salesforce.com/)has some amazing resources that you could use.
  3. You can also follow the @SalesforceCPQ twitter handle for updates and use hash tag #askforce or @asksalesforce for any help with issues if you are stuck.
  4. Once you are ready you can then take the Salesforce CPQ Specialist certification (http://certification.salesforce.com/cpqspecialist)to showcase proven CPQ expertise 
All said and done, implementaiton experience on real world projects is a must and no amount of theoretical understanding & practice replaces that. Hence, try to have atleast one lifecycle implementaiton that you have been a part of before taking the certification.

Also, if your issue is now resolve, please close this thread.
vibrationvibration 

I want dump question in Salesforce Administration Certification.

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora
SunilSunil 

Hi,

 

I am not sure where to post this so I am posing here.

 

I tried to download ADM201 – study guide from the below link but I am getting 6 page pdf file -

 

http://www.salesforce.com/in/services-training/training_certification/certification/

 

I assume there was something 50+ pages pdf file for ADM 201 study guide.

 

Anyone knows where to download correct ADM201 study guide?

 

Thanks.

 

Anyone from SFDC, pls correct the attachment(study guide). It is linking to wrong pdf.

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

This is strange. But no need to worry I have that PDF with me, if you want that just DM me your email Id and I will send it to you (900 KB and 50 pages).

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Wayne4278Wayne4278 

I keep seeing the acronym SFDC in the posts and literature.   I have searched the SF websites and the Internet for a definition - without luck.

 

What does the acronym SFDC stand for?

 

Thanks in advance for your help.

 

Regards,

Wayne

Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert

salesforce.com (SalesForceDotCom) = SFDC