• Musunuru Surekha
  • NEWBIE
  • 150 Points
  • Member since 2016

  • Chatter
    Feed
  • 4
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 42
    Replies
I Have few  questions on this step.

How many custom report types are needed?
I thought about 2, but can't properly figure out the correct objects:
  • Users with Volunteer Shift Worker Records 
    • A Primary Object = Users,  has at least one B record
    • B Secondary Object = Volunteer Shift, has at least one C record
    • C Tertiary Object = Volunteer Shift Worker
  • Accounts with Vol Activities with Vol Jobs
    • A Primary Object = Account, has at least one B record
    • B Secondary Object = Volunteer Activities, has at least one C record
    • C Tertiary object = Volunteer Jobs
What Am I missing here?

Thanks


 






 
I've completed the steps to create the Supplies report as outlined in the direcitons but when I Verify the challenge I get a "Challenge Not yet complete..." error.  It says the custom report names Supplies wasn't found, hoever, as you can see in the screenshot, it is created, built as described and in a public folder.  Any help or suggestions would be appricieated!

Supplies Report error messageReport Properties
App Customization Superbadge Step 2 
Hello Please help me with the feild 'Cumulative Volunteers Needed', have no idea about this feild formula???
Challenge Not yet complete... here's what's wrong: 
The report 'Top Volunteers' is not using the correct filter.

User-added image
Hi all, i have my helper class given below:-
public class BatchClosedResponse implements Database.Batchable<sObject> {

   public Database.QueryLocator start(Database.BatchableContext BC){
         string query = 'Select id, First_Response__c,'+ 
                            'ClosedDate ,'+ 
                            'OwnerId, CreatedDate, Status,'+ 
                            'Helper_Closed_Date__c, '+
                            'LastModifiedDate, '+
                            'Helper_First_Responce__c '+
                            'from case WHERE id = \'500m000000885qW\''; 
                            
       System.debug('query'+query);
      return Database.getQueryLocator(query);
   }
    public void execute(Database.BatchableContext BC, List<Case> scope){
        List<Case> caseList = new List<Case>();
         BusinessHours defaultBH = [ SELECT Id 
                                   FROM BusinessHours 
                                   WHERE IsDefault = true  
                                   Limit 1
                                  ];
       for(Case caseObj : scope ){ 
         if( (caseObj.ClosedDate != Null)
                                          && caseObj.Status == 'Closed' 
                                         ){ 
                                             System.debug('I am here');
                                             Decimal lastResult = BusinessHours.diff( defaultBH.Id, caseObj.CreatedDate, caseObj.ClosedDate );
                                             
                                             Decimal lastResultingHours = lastResult/(60*60*1000);
                                             
                                             caseObj.Helper_Closed_Date__c= lastResultingHours;
                                             
                                         }
           caseList.add(caseObj);
                            }
        
        update caseList;
    }
    
    public void finish(Database.BatchableContext BC){

   }
    
}User-added imagehow to cover this part?
Any suggestion?
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: XWWYUUAU
Good day everyone, this is my second attempt at Step 5 and everything works until I call the Approval process in Process Builder.

The Approval process works too, but I can't get Process Builder to action the Robot Setup record creation - I've tried it as an invocable process and a normal record creation within Process Builder.

Thing is this worked until I called the Approval Process within PB. Any ideas?
I get the error message that the " Top Volunteer Organizations" chart does not exist or does not have the right title assigned. 

Here is the screenshot of what I saved in Volunteer Report folder.
User-added image

This is what I have in Report Builder. I cannot figure out what I did wrong here. Thanks!
User-added image
 
I'm receiving an error when I try to change a field on a custom object. When the field (application status) is changed to "confirmed", a Contact should be created. I'm receiving this error when I change the field: 

Error:Apex trigger LGRApplicationTriggers caused an unexpected exception, contact your administrator: LGRApplicationTriggers: execution of BeforeUpdate caused by: System.DmlException: Upsert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A validation rule is preventing the record from saving: Use one of these records?: []: Class.LGRApplicationTriggerHandler.handleAfterApplicationUpdate: line 134, column 1

We have 6 managed validation rules on the contact object, and I disabled all of them and still received this code. We don't have any other validation rules on any of the other objects that this object relates to. Does anyone have any ideas? Thanks!
trigger Giveendclientname on Lead (before insert, before update) {
    List<ID> OppIds = New List<ID>();
    for(lead ld : Trigger.new){
        if(ld.Customer_Type__c == 'partner'){
            OppIds.add(ld.Customer_Type__c);
        }
        List<Opportunity> oppList = [SELECT id, EndClientName__c FROM Opportunity WHERE id in :OppIds];
    //    for(Lead opp : trigger.new){
            if(oppList.EndClientName__c == ''){
                //  oppList[i].status = 'Approved';
                oppList.addError('End client name should be given if it is a partner Account');
            }
           // oppList.add(opp);
            update oppList;
      //  }
    }
}

The requirement is, when the customer type in lead is partner, then the endclient name in opportunity should not be blank. it should throw an error.
Hi guys- I am writing a piece of code that will exclude countries form validation if those are present in custom setting, but m getting  null pointer exception on that.
 Map<String, Map<String, String>> mapCountry = new Map<String, Map<String, String>>();
            for(State__c st : [Select id, Name, Country__r.Name from State__c]) {
                if(!mapCountry.containsKey(st.Country__r.Name)) {
                    Map<String, String> mapST = new Map<String, String>();
                    mapCountry.put(st.Country__r.Name, mapST);
                }
                mapCountry.get(st.Country__r.Name).put(st.Name, st.Name);
            }
            //quering some account here

for(Account acc : accountList){
                billingCountry = acc.BillingCountry;
                // Check Country & State is valid
                if(!mapCountry.containsKey(acc.BillingCountry)) {
                    errorFlag = true;
                    errorMsg = new ApexPages.Message(ApexPages.Severity.ERROR, System.Label.Bad_Country_Value);
                    ApexPages.addMessage(errorMsg);
                } else if(!mapCountry.get(acc.BillingCountry).containsKey(acc.BillingState)) {
                    errorFlag = true;
                    errorMsg = new ApexPages.Message(ApexPages.Severity.ERROR, System.Label.Bad_Value);
                    ApexPages.addMessage(errorMsg);
                }


In this second else if condition i have to check if the countries are in custom setting (bypass_counry__c) in the field (country__c) then bypass validation.

PLease suggest
User-added image

Hi,

I am getting the above error while completing hte challenge. Everything is working fine, still I dont know what is being missed.. Can someone help me out.

My code is as below:

BoatSearchForm.cmp
<aura:component controller="BoatDetailsController">
    
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    
    <aura:attribute name="showNewButton" type="Boolean"/>
    <aura:attribute name="boatType" type="BoatType__c[]"/>
    <aura:attribute name='searchOptionToIdMap' type='Map' default="{All:''}" />
    
    <aura:registerEvent name="boatsearch" type="c:boatSearchEvent"/>
    
    
    <lightning:layout horizontalAlign="center">
        <lightning:layoutItem class="slds-grid_vertical-align-center">
        <lightning:select name="Boat Types" label="" aura:id='selectComp'>
            <option value="">All Types</option>
        <aura:iteration items="{!v.boatType}" var="boat">
            <option value="{!boat.Id}" text="{!boat.Name}"></option>
        </aura:iteration>
    </lightning:select>
        </lightning:layoutItem>
        
    <lightning:layoutItem class="slds-grid_vertical-align-center slds-p-horizontal_medium slds-p-top_medium">
        <lightning:button variant="brand" label="Search" onclick="{! c.handleSearch }"/>
        
        
    <aura:if isTrue='{!v.showNewButton}'>
        <lightning:button variant="neutral" label="New" onclick="{! c.createNewRecord }" />
        </aura:if>
     </lightning:layoutItem>
      </lightning:layout>
</aura:component>

BoatSearchFormController:
({
    doInit : function(component, event, helper) {
        var isEnabledcreateRecordEvent = $A.get("e.force:createRecord");
        if(isEnabledcreateRecordEvent){
        console.log("isEnabledcreateRecordEvent--"+isEnabledcreateRecordEvent);
        component.set('v.showNewButton',true);
    }
        helper.getBoatTypes(component, event, helper);
        
    },
    
    createNewRecord : function(component, event, helper) {
        var createRecordEvent = $A.get("e.force:createRecord");
        if(createRecordEvent){
            
            var selected =component.find('selectComp').get('v.value');
            console.log("selected---"+selected);
            
        createRecordEvent.setParams({
        "entityApiName": "Boat__c",
             'defaultFieldValues': {
                            'BoatType__c': selected
                        }
        }); 
        }
            
    createRecordEvent.fire();
    },
    
    handleSearch : function(component, event, helper) {
        var selectedboatType =component.find('selectComp').get('v.value'); 
       var searchEvent = $A.get("e.c:boatSearchEvent"); 
        searchEvent.setParams({
            "boatTypeID" : selectedboatType});        
        searchEvent.fire();       
    }    
})


BoatSearchResults.cmp:
<aura:component controller="BoatSearchResults" implements="flexipage:availableForAllPageTypes" access="global">
     
    <aura:attribute name="boats" type="Boat__c[]"/>
    <aura:attribute name="boatTypeId" type="String"/>
    <aura:attribute name="selectedBoatId" type="Boolean"/>

    <aura:handler name="init" value="{!this}" action="{!c.doSearch}"/>
    <aura:handler event="c:boatSearchEvent" action="{!c.handleBoatSearchEvent}"/>
    
    <lightning:layout horizontalAlign="spread" multipleRows="true">
    <aura:if isTrue="{!v.boats.length > 0}">
    <aura:iteration items="{!v.boats}" var="boat">
         <lightning:layoutitem >
        <c:BoatTile boat="{!boat}" selectedBoatId="{!boat.Id==v.selectedBoatId ? true : false}"/>
        </lightning:layoutitem>
  </aura:iteration>
       
        <aura:set attribute="else">
        <lightning:layoutitem class="slds-align_absolute-center">
             <ui:outputText value="No boats found" />
            </lightning:layoutitem>
        </aura:set>
        </aura:if>
        
    </lightning:layout>
</aura:component>


BoatSearchResultsController:

({  
    search: function(component, event, helper){ 
        var params = event.getParam('arguments'); 
        alert(params.boatTypeId); //<---getting proper value
        alert(component.set("v.boatTypeId", params.boatTypeId)); //<---here I am getting undefined
        var a = component.get('c.doSearch');
        $A.enqueueAction(a); 
    }, 
    doSearch : function (component, event, helper){ 
        alert(component.get("v.boatTypeId")); //<---here I am getting undefined
        helper.onSearch(component); //calling helper method
    },
    
    handleBoatSearchEvent : function(component, event, helper) {
        console.log("In boatSearchEvent handler");
     var id = event.getParam("boatTypeID");
        component.set("v.boatTypeId",id);
    }    
})

BoatSearchResultsHelper:
({
    onSearch : function(component) {
        console.log("onSearch: In onSearch helper");
        
        var action = component.get("c.getBoats");
        action.setParams({boatTypeId:component.get("v.boatTypeId")});
     
        action.setCallback(this, function(response) {
            var state = response.getState();
            console.log("State---"+state);
             if (state === "SUCCESS")
             {
                 console.log('onSearch : inside success state');
                 var boatIds = response.getReturnValue();
                 console.log("When in onSearch boatIds---"+boatIds);
                 component.set("v.boats", boatIds);
             }
        });
        $A.enqueueAction(action);        
    }
})
I am stuck on challenge 3. I am trying to create a ACTION Volunteer Shift Object. Requirements are 
"Quick Self Sign Up
Maria asked for a quick way for users to sign themselves up for a Shift directly from a Volunteer Shift record. Your solution was an action with the label Sign Me Up. To keep it simple there should be no fields on the pop-up. Instead the action automatically sets the Volunteer to the user clicking the button, changes the status to Confirmed, and assigns the currently viewed Shift as the new record's Volunteer Shift. Once the action is done show the friendly message "Congratulations, you are signed up!".

Now When I am trying to select Staus field it does not show any of the Voulnteer Shift Worker fields to choose. FYT There is a MasterDetail Relationmship between these two. Volunteer Shift is the Master Object.
I am working on the Step 2 of this Super badge. I am getting this following error message
Challenge Not yet complete... here's what's wrong: 
The 'Volunteer Organization' field's filter is not configured correctly.

Here are the requirementsVolunteer OrganizationVolunteer Job, Volunteer Shift, and Volunteer Shift Worker display the associated Organization 
Volunteer Organization : Volunteer Job, Volunteer Shift, and Volunteer Shift Worker display the associated Organization name.
Here are my formulas: 
 Volunteer JobFormula: Volunteer_Activity__r.Volunteer_Organization__r.Name
Volunteer ShiftFormula: Volunteer_Job__r.Volunteer_Organization__c
Volunteer Shift WorkerFormula: Volunteer_Shift__r.Volunteer_Organization__c
I Have few  questions on this step.

How many custom report types are needed?
I thought about 2, but can't properly figure out the correct objects:
  • Users with Volunteer Shift Worker Records 
    • A Primary Object = Users,  has at least one B record
    • B Secondary Object = Volunteer Shift, has at least one C record
    • C Tertiary Object = Volunteer Shift Worker
  • Accounts with Vol Activities with Vol Jobs
    • A Primary Object = Account, has at least one B record
    • B Secondary Object = Volunteer Activities, has at least one C record
    • C Tertiary object = Volunteer Jobs
What Am I missing here?

Thanks


 






 

Hi,
in second step of Project "Customize the User Interface for a Recruiting App", I have this error:
"Challenge Not yet complete... here's what's wrong: 
Could not find a Candidate Quick Action with the Label 'New Job App' and the action type of 'Create a Record'."

But I think i all ok as view in Action detail:

Candidate action detail
Candidate action detail
Have you same problem?

Thanks. Sergio

Good morning, I am new to the trailhead experience and I am trying to complete the challenge where you install an app in the TP.

I created the Playground but when I look at users to see what my user name is password is, it is blank.  I don't know what my username or password is to complete the challenge.  Is there someplace else I can get the information.

TIA,
Leigh
I've completed the steps to create the Supplies report as outlined in the direcitons but when I Verify the challenge I get a "Challenge Not yet complete..." error.  It says the custom report names Supplies wasn't found, hoever, as you can see in the screenshot, it is created, built as described and in a public folder.  Any help or suggestions would be appricieated!

Supplies Report error messageReport Properties
Hello, I'm trying to complete the challenge for the "Group and Categorize Your Data" challenge, and there is an issue with the instructions for the "Use Buckets" portion. In the fourth step "(For the third range (> 100,000), in the Name field enter Large)", it didn't offer a specific number to include. And the you must enter text into the final field, which is left blank on the instructions. When I tried to complete the challenge, I got a message saying that it couldn't be completed because: 
The 'Pipeline Matrix Report Current and 2 FY' report does not appear to have the bucket field configured correctly.

Can someone please help troubleshoot? Thanks!
I am trying to complete my badge for the Create Reports and Dashboards for Sales and Marketing Managers, however in one of the challenges for the Group and Categorize Your Data section I keep getting an error message when I try to verify my steps. This report was not one of the reports to create in this section.
Challenge Not yet complete... here's what's wrong:
The 'Users Not Logged in Last 7 Days' report does not seem to grouped on 'Close Date' by Calendar Month.


Why would you group a user log in report by a close date for one, and two Users Not Logged in Last 7 Days is not a report built in this section.

SFDC- can you help fix this?? I can't get my badge because of this.
Trailhead incorrect error message