• Sowjanya Saride
  • NEWBIE
  • 19 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 6
    Replies
Hello All,
As a newbee, trying to debug Account Name of Cases whose status = NEW with the help of Case.AccountID in logs the following:
My approach is as below:
public class NewCaseListController {

    public List<Case> getNewCases()
    {
        String n = 'NEW';
        List<Case> results = [SELECT ID, 
                              CaseNumber, 
                              Status ,
                              AccountId    
                              from CASE
                              WHERE Status=:n];
        System.debug(results.size());
        for(Case c : results)
        {
         System.debug('CASE ID = '+ c.Id); 
         System.debug('CASE NUMBER = '+ c.CaseNumber);
         System.debug('Account ID = '+ c.AccountId);
         System.debug('CASE STATUS = '+ c.Status);
        }

        return results;
    }
}

My attempt failed.
Can I get Account Name using AccountID of a CASE? If so, Please please do enlighten how this can be done?

Thanks in Advance.
-LS
Hello Ohana!

I am trying to pass the ' Get Started with Apex '  Challenge in
                                                  Developer Beginner  >> Apex Basics & Database >> Get Started with Apex  
Trail.

My Code runs successfuly in my Dev Console and can see the System Debug Logs.
But, it says My challenge  is  Failed. I Don't Understand . Please Help. Posting screenshots below : 
<
public class StringArrayTest {
public static List<String> generateStringArray(Integer n )
    {        
        List<String> returnStringList = new List<String>();
     
        for( Integer i = 0 ; i < n ; i++ )
        {
             returnStringList.add('Test'+i);
               
             system.debug( returnStringList[i]);
        }
        return returnStringList;
    } 
}

>
User-added image
Debug Log
User-added image
PS: I tried this in two different Playgrounds but no luck.

Thanks,
L
Hello All,
As a newbee, trying to debug Account Name of Cases whose status = NEW with the help of Case.AccountID in logs the following:
My approach is as below:
public class NewCaseListController {

    public List<Case> getNewCases()
    {
        String n = 'NEW';
        List<Case> results = [SELECT ID, 
                              CaseNumber, 
                              Status ,
                              AccountId    
                              from CASE
                              WHERE Status=:n];
        System.debug(results.size());
        for(Case c : results)
        {
         System.debug('CASE ID = '+ c.Id); 
         System.debug('CASE NUMBER = '+ c.CaseNumber);
         System.debug('Account ID = '+ c.AccountId);
         System.debug('CASE STATUS = '+ c.Status);
        }

        return results;
    }
}

My attempt failed.
Can I get Account Name using AccountID of a CASE? If so, Please please do enlighten how this can be done?

Thanks in Advance.
-LS
Hello Ohana!

I am trying to pass the ' Get Started with Apex '  Challenge in
                                                  Developer Beginner  >> Apex Basics & Database >> Get Started with Apex  
Trail.

My Code runs successfuly in my Dev Console and can see the System Debug Logs.
But, it says My challenge  is  Failed. I Don't Understand . Please Help. Posting screenshots below : 
<
public class StringArrayTest {
public static List<String> generateStringArray(Integer n )
    {        
        List<String> returnStringList = new List<String>();
     
        for( Integer i = 0 ; i < n ; i++ )
        {
             returnStringList.add('Test'+i);
               
             system.debug( returnStringList[i]);
        }
        return returnStringList;
    } 
}

>
User-added image
Debug Log
User-added image
PS: I tried this in two different Playgrounds but no luck.

Thanks,
L
Hi, I am trying to complete following challenge in data security module under control access to fields.
Create a profile and permission set to properly handle field access
All the sales team members have access to create, edit, and view Accounts and Contacts, but NOT delete them. Also, only select senior sales members should be able to see or edit the account Rating field. For this challenge, assume they have the same object and field permissions of the Standard User profile.
Create a Profile to handle access to the Account and Contact objects. Create a Permission Set to give selective access to the Rating field.
Create a new profile based upon the existing profile: Standard User
Profile name: Account
Give the following access to the Account object: Read, Create, and Edit
Give the following access to the Contact object: Read, Create, and Edit
Remove from profile access to account Rating field: Read Access and Edit Access
Create a new permission set
Label: Rating
API Name: Rating
License: Salesforce
Give to permission set access to account Rating field: Read Access and Edit Access
My Solution Includes

Creating a profile named accounts with salesforce license and from page layout under object permission removing delete permission and keeping the READ, CREATE and EDIT permission for the account and contact object.and I couldn't find the account rating field there.
then I created the permission set called rating and in the object setting gave the read and edit access. Still unable to complete the challenge.
Please refer my mistake
Unable go get Report to show.   Unsure of what is wrong - I can see it and open it in my Unfiled Public Reports.   When I try to rename it, it indicates it already exists.....I cannot move forward with next sessions......out of ideas of how to fix
User-added image
Hi, I can't figure out what I'm missing... I've come back to "Creating Object-Specific Quick Actions" quite a few times now, and keep getting the same error:

Challenge Not yet complete... here's what's wrong: 
You do not have the correct account fields in the 'Update Account Information' quick action layout

In Setup, I'm in Account Buttons Links and Actions.  I've added a New Action to Update Account Information. I Edited the Layout to add the 4 fields requested: 'Account Name', 'Rating', 'Employees', and 'Annual Revenue'. Saved and added to Account Layout in both regular and Salesforce1 sections. 

After getting that error a few times, I've gone back in and tried these things and more, none of which worked:
- Added Quick Action to all 4 Account Layouts listed
- Tried adding fields as Predefined Field Values instead of just in the Layout
- Deleting and re-creating the Quick Action
- Adding all fields to the Layout instead of just the 4 listed

Please help!
Hi 

I'm looking for entry level Salesforce admin jobs in Maryland. I'm ready to work for Non Profit organizations too.