• Darrell Waddell 223
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Getting this error:
Error: Compile Error: unexpected token: 'List' at line 44 column 8

public String SupportTierValue {
  get {
           
        List tmpAcct = [SELECT Id, Name, Support_Tier__c
        FROM Account
        WHERE Id IN 
        (SELECT AccountId 
        FROM user 
        WHERE username=:UserInfo.getUsername()
        )
        LIMIT 1
        ];
        if (tmpAcct.size() > 0) {
        String SupportTier = tmpAcct[0].Support_Tier__c;
        }
        else {
        String SupportTier = 'SomeDefaultValue';
        }
        
      
       
    }
    return SupportTierValue;
  }
  private set;

}

I'm having issues with adding a Menu Item to the Navigation Menu within Community Builder.

User-added image
User-added image

This is what I want: Add a menu item called "My Profile" and have it go directly to the User Profile page.
What's happening: The URL for My Profile requires one or more parameters. Please replace each parameter with the appropriate value.

Name: My Profile

Type: Community Page
Page: User Profile
URL: /profile/:recordId