Wednesday, June 28, 2017

Account Team Member and Account Share in salesforce

Account Team Member and Account Share only available in Enterprise and Unlimited edition (included Developer edition). An account team is a team of users that work together on an account. You can add a user into Account Team manually from Account Team related list in Account Page Layout.

After click Add button, you can specify Account Access, Contact Access, Opportunity Access, Case Access, and Team Role. If your default sharing in OWD is Private for that object, you will see Private, Read Only, and Read/Write option in picklist. You can add up to 5 users every time add team member manually. 

But, if you need to add users into hundreds of account team member, manual process is not fun. 




So, here is the solution. Use Data Loader to mass create AccountTeamMember records and AccountShare records.



1. Account Team Member

The API name is AccountTeamMember, you need to populate following fields when mass insert into AccountTeamMember: 

- AccountId

- UserId

- TeamMemberRole

Note: creating this record will not allow user added into AccountTeamMember to access Contact, Opportunity, Case if the sharing setting is Private. TeamMemberRole value can be different with values  defined in Team Role. 

Purpose: it will show user added into Account Team related list.



2. Account Share



The API name is AccountShare, you need to populate following fields when mass insert into AccountShare: 

- AccountId

- UserOrGroupId

- AccountAccessLevel

- CaseAccessLevel [optional]

- ContactAccessLevel [optional]

- OpportunityAccessLevel [optional]

You can set Private, Read Only, and Read/Write in above fields optional if default sharing in OWD is set to Private.

Note: user added into Account Share will be able to access Case, Contact and Opportunity records with  Read Only or Read/Write permission, even it is not shown in Account Team related list.


Here is more information on mass create manual sharing rules with the Data Loader, click here.


Delete Campaign in Salesforce


A user come to me that she do see delete button in a campaign she create wrongly.

As usual, I check user profile and page layout.
- User profile have delete permission on Campaign object - checked
- Page layout have delete button - checked
So, what is the caused?

Finding.... campaign is not the same with other object. You need to enable "Marketing User" for particular user to be able to see that 'Delete' button.
Click Your Name | Setup | Manage users | User | Look up for the user's name | Edit Enable the marketing user checkbox | Save.

The Marketing User check box on the user profile page indicates whether or not a user has the right to create and manage campaigns including:
  • Create a new campaign
  • Edit an existing campaign
  • Delete an existing campaign
  • Update campaign statistics
  • Import leads into a campaign*
  • Mass update the status for members of a campaign*
  • Configure advanced campaign setup to define member status values
  • Run campaign reports across multiple campaigns
* In order to use the campaign import wizards, Marketing Users must also have the Marketing User profile (or the "Import Leads" permission in Enterprise Edition organizations).

No comments:

Post a Comment