• Hima Bindu Moka
  • NEWBIE
  • 35 Points
  • Member since 2015
  • Admin/Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 13
    Replies
I'm working on the Lightning Experience Rollout Specialist Superbadge Step 6: Improve Navigation in the Sales App and Create a Chatter Group
After many attempts, I am still struggling to complete step 6 in the Lightning Experience Rollout Specialist Super badge. I receive the below error when trying to complete the activity but believe I have completed it correctly?

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: LZDIQHTN
Close errors
Hi ,
I'm very new to triggers and managed to write a trigger and it works in Sandbox  and it's test cass is success but not covering code coverage show only 0. Unable to achieve code coverage, any suggestions to direct me to achieve my 100% code coverage.

I appreciate you help in advance!!

My trigger:

trigger parentCaseClose on case(before update)
{
    set<id> openCaseIDs = new set<id>();
    
    for(case caseList : [select id, ParentId, status from case where ParentId In:trigger.newMap.keyset() AND status != 'Closed'])
    {
        openCaseIDs.add(caseList.ParentId);
    }
    
    for(case newCase : trigger.new)
    {
        if(newCase.status != trigger.oldMap.get(newCase.id).status && newCase.status == 'Closed' && openCaseIDs.contains(newCase.id))
        {
            newCase.addError('The associated child cases are open');
        }
    }
}



My Test class:

@isTest

private class TestParentCaseCloseValidation {
   
  public static List<Case> createCase(string caseStatus) {
     // test account insert
    Account a = new Account();
       a.Name = 'sample account';
       insert a;
    // test contact insert
     Contact c = new Contact();
        c.FirstName = 'Test';
        c.LastName = 'contact';
        c.AccountId= a.Id;
        insert c;
        
     List<Case> cases = new List<Case>();
    // string caseStatus = 'In Progress';
     Case parent = new Case( Subject='TEST', contactID = c.id,Status=caseStatus );
        insert parent;
       
     cases.add(parent);
       // system.debug('insert parent',cases.isEmpty());
    
     Case child1 = new Case(Subject='child1',  contactID = c.id, Status=caseStatus,ParentId=parent.Id);
        insert child1;
        cases.add(child1);
    
    
     Case child2 = new Case(Subject='child2', contactID = c.id, Status=caseStatus,ParentId=parent.Id);
        insert child2;
        cases.add(child2);
        return cases;
    
    
    
 }
   
     static testMethod void testCloseParent() {
      
        List<Case> cases = createCase('In Progress');
            String parentId = null;
     //Update one of the children and see that the parent stays open
          for (Case c:cases) {
              if (c.ParentId!=null) {
                  parentId = c.ParentId;
                  c.Status = 'Closed';
                 
                }
          }
        update cases;
        //Shouldn't be closed yet
            Case parent = [select IsClosed from Case where Id=:parentId];
                System.assert(parent.IsClosed==false);
               
             for (Case c:cases) {
                    if (c.ParentId!=null && c.Status!='Closed') {
                        parentId = c.ParentId;
                        c.Status = 'Closed';
                       
                      
                    }
                }update cases;
        
       
    
       
        test.startTest();
                          
    try
   
        {
            update parent;
 
        }

        catch(System.DMLException e)

        {

            System.assert(e.getMessage().contains('There are still Child Cases Open '));

        }
     test.stopTest();
    }
}
Hi ,
I'm working on creating screens for Survey in the trailhead.but I ran in to this error .can any one guide me how to figure the error ?
I tried but not able to find .plz need help.
Survey the Customer


Challenge Not yet complete... here's what's wrong: 
The Survey Customer screen is either not using the Satisfaction Choices picklist choice or the picklist choice is not setup properly. Please check instructions. 
Note: you may run into errors if you've skipped previous steps.




thanks.
Hi,
As an Administrator, I want the donations created from the web form to be attached to Contacts in Salesforce so that I can track my most engaged and generous donors .
Can any one guide  me please.
Thanks ,

 
Hi,

When I 'm trying to update email in my success community profile, to add earned Trailhead badges,It asks me to Contact Trailhead Support. as my email(login) to Trailhead is different to email in Profile.

please help me out.
Hi ,
Please can  anyone help me ,

I am trying to do this project in Trailhead.
Build a Conference Management AppCreating an Apex class ,but I get this error while verification.

This is the ERROR:

 There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: [] 
Note: you may run into errors if you've skipped previous steps.

 
Hi,

While creating a Visualforce page with Standard Controller,I'm getting this ERROR:

" Visualforce ErrorHelp for this Page
The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores. "
 please ,can anyone help me to troubleshoot this error.

Thanks,
Hima Bindu.
Hi,please help me with the Apex code which I'm trying get Contacts fields by passing parameters in a method in Trailhead

this is error
Hi ,
I'm very new to triggers and managed to write a trigger and it works in Sandbox  and it's test cass is success but not covering code coverage show only 0. Unable to achieve code coverage, any suggestions to direct me to achieve my 100% code coverage.

I appreciate you help in advance!!

My trigger:

trigger parentCaseClose on case(before update)
{
    set<id> openCaseIDs = new set<id>();
    
    for(case caseList : [select id, ParentId, status from case where ParentId In:trigger.newMap.keyset() AND status != 'Closed'])
    {
        openCaseIDs.add(caseList.ParentId);
    }
    
    for(case newCase : trigger.new)
    {
        if(newCase.status != trigger.oldMap.get(newCase.id).status && newCase.status == 'Closed' && openCaseIDs.contains(newCase.id))
        {
            newCase.addError('The associated child cases are open');
        }
    }
}



My Test class:

@isTest

private class TestParentCaseCloseValidation {
   
  public static List<Case> createCase(string caseStatus) {
     // test account insert
    Account a = new Account();
       a.Name = 'sample account';
       insert a;
    // test contact insert
     Contact c = new Contact();
        c.FirstName = 'Test';
        c.LastName = 'contact';
        c.AccountId= a.Id;
        insert c;
        
     List<Case> cases = new List<Case>();
    // string caseStatus = 'In Progress';
     Case parent = new Case( Subject='TEST', contactID = c.id,Status=caseStatus );
        insert parent;
       
     cases.add(parent);
       // system.debug('insert parent',cases.isEmpty());
    
     Case child1 = new Case(Subject='child1',  contactID = c.id, Status=caseStatus,ParentId=parent.Id);
        insert child1;
        cases.add(child1);
    
    
     Case child2 = new Case(Subject='child2', contactID = c.id, Status=caseStatus,ParentId=parent.Id);
        insert child2;
        cases.add(child2);
        return cases;
    
    
    
 }
   
     static testMethod void testCloseParent() {
      
        List<Case> cases = createCase('In Progress');
            String parentId = null;
     //Update one of the children and see that the parent stays open
          for (Case c:cases) {
              if (c.ParentId!=null) {
                  parentId = c.ParentId;
                  c.Status = 'Closed';
                 
                }
          }
        update cases;
        //Shouldn't be closed yet
            Case parent = [select IsClosed from Case where Id=:parentId];
                System.assert(parent.IsClosed==false);
               
             for (Case c:cases) {
                    if (c.ParentId!=null && c.Status!='Closed') {
                        parentId = c.ParentId;
                        c.Status = 'Closed';
                       
                      
                    }
                }update cases;
        
       
    
       
        test.startTest();
                          
    try
   
        {
            update parent;
 
        }

        catch(System.DMLException e)

        {

            System.assert(e.getMessage().contains('There are still Child Cases Open '));

        }
     test.stopTest();
    }
}

Hey salesforce experts

I have issue and whole day I can't resolve it.. 

I have custom object parent 'FundEZ_Codes__c' and child 'GL_Route' lookup connection. So I have to override the new button from related list 'Gl_Routes' in FundEz_Codes__c to inherit this lookup field. I'm trying with URL Hack but something I miss.. Here is my code:

<apex:page standardController="GL_Route__c" action="{!URLFOR($Action.GL_Route__c.New, null, ['retURL'='/a0r/o','Name'='AUTO-POPULATED', 'CF00N6C000000Ks4C_lkid'=GL_Route__c.GL_Map_Code_1__c, 'CF00N6C000000Ks4C'=GL_Route__c.GL_Map_Code_1__r.Name], true)}">
</apex:page>

The problem is that GL_Route__c.GL_Map_Code_1__r.Name is empty and didn't pre-populate the field ..  But this works in formula fields of GL_Route.. 

Can you help me PLSS

Hi,
As an Administrator, I want the donations created from the web form to be attached to Contacts in Salesforce so that I can track my most engaged and generous donors .
Can any one guide  me please.
Thanks ,

 
Hi ,
Please can  anyone help me ,

I am trying to do this project in Trailhead.
Build a Conference Management AppCreating an Apex class ,but I get this error while verification.

This is the ERROR:

 There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: [] 
Note: you may run into errors if you've skipped previous steps.

 
Hi,

While creating a Visualforce page with Standard Controller,I'm getting this ERROR:

" Visualforce ErrorHelp for this Page
The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores. "
 please ,can anyone help me to troubleshoot this error.

Thanks,
Hima Bindu.
Hi
When I create a new developer SalesForce license it creates a professional SalesForce account
THis means I can't access the workflow and Approvals link
I used this link to register 
http://www.developerforce.com/events/regular/registration.php

And i'm trying to follow the instructions here
http://blogs.msdn.com/b/webdev/archive/2015/09/07/integrating-with-salesforce-using-asp-net-webhooks-preview.aspx

How can I upgrade my professional edition?

Cheers
Sam
Hi,please help me with the Apex code which I'm trying get Contacts fields by passing parameters in a method in Trailhead

this is error
This component works but does not validate and gives the following error message:
Step not yet complete... here's what's wrong: 
The CSS does not contain a reference to the background image 
Note: you may run into errors if you've skipped previous steps.