Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Chatter Development
- :
- Re: Is it possible to create a Chatter Free user f...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Is it possible to create a Chatter Free user from a Contact Button?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-17-2012 08:32 AM
This is Non-Profit where we are trying to integrate the community of volunteers through Chatter Free user accounts.
The first step would be creating a button on Volunteer Contact Records creating Chatter Free user accounts for each volunteer, using the contact email.
I have succeeded creating a Chatter Free account through apex data loader.
I am looking for limitations on this matter... but as wierd as it looks, I haven't found any.
Any suggestions?
Many thanks.
David.
Solved! Go to Solution.
Re: Is it possible to create a Chatter Free user from a Contact Button?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-26-2012 12:31 AM
Try the code below,
VF page:
<apex:page standardController="Contact" extensions="ChatterFree" action="addUser">
</apex:page>
Apex class:
public class ChatterFree {
private final Contact acct;
public ChatterFree(ApexPages.StandardController stdController) {
this.acct = (Contact)stdController.getRecord();
}
public PageReference addUser() {
if(acct.id != null) {
Contact acc = [Select Lastname, Email From Contact Where Id =: acct.id];
User auser = new User();
auser.Lastname = acc.Lastname;
auser.Email = acc.Email;
auser.Username = 'Chatter.Free@XXX';
auser.Alias = 'C.FX';
auser.CommunityNickname = 'Chatter.FreeX';
auser.ProfileId = '00e1000XXXXX'; //Standard Chatter Free Profile Id
auser.LocaleSidKey = 'ja_JP';
auser.EmailEncodingKey = 'ISO-2022-JP';
auser.LanguageLocaleKey = 'en_US';
auser.TimeZoneSidKey = 'Asia/Tokyo';
insert auser;
}
return null;
}
}
Re: Is it possible to create a Chatter Free user from a Contact Button?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-28-2012 03:18 AM
Many Thanks. That was a full response.

