You need to sign in to do that
Don't have an account?
Onttu Lindeman 12
Account teams for the home page to display the team for a partner users account
I have community users in my partner community. I would like a home page component VF page that would pull the account team off their record and display the list. So all partners are related to an account so they should all link to an account team.
As you mentioned create a VF page and add that for the community and in the page controller you can query the AccountTeamMember information either based on the account name or email Id of the logged in user.
Let me know if you need anything more
Thank You,
Rajesh.
public class MyProfilePageController {
private User user;
public List<AccountTeamMember> myTeam { get; set; }
public User getUser() {
return user;
}
public MyProfilePageController() {
myTeam = [SELECT Id, AccountAccessLevel, AccountId, Account.Name, TeamMemberRole,UserId, User.Name FROM AccountTeamMember where AccountId =:user.Contact.AccountId];
}
}
VF page
<apex:page standardController="Account" extensions="AccountTeamMemberController"> <apex:form > <apex:pageBlock title="List of Account Team Members" tabStyle="Account"> <apex:pageBlockTable value="{!atmList}" var="atm"> <apex:column value="{!atm.User.Name}"/> <apex:column value="{!atm.TeamMemberRole}"/> <apex:column value="{!atm.Account.Name}"/> <apex:column value="{!atm.AccountAccessLevel}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>