• LeoNaka
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello All, 
I created a community and enabled Self-registration for our contacts to log in. 
I used a custom registration handler (Visualforce page), so it doesn't create duplicate contacts.
The registration works fine, the user is created and the contact is associated. But the login always fails, unless the new user checks his email and  click in the link to reset its password. 
Why the user needs to reset the password, if it already set during the registration? 
Why does the new user has to click in the link that was sent to his email? Without doing that the user can't login automatically after the registration nor throught the community page, and for mobile users it's just adds more work for them.
Is there a way to avoid the user clicking in the link in its email? 

thanks

 

Hello, i'm trying to create a new user from PortalSite, but it's giving me this error: 

There was an error in registering a user in site Login. The error message is: portal account owner must have a role

when i register and i check AccountList and ContactList, i find that both of records are created and the Contact is associated to this account but i can't login because the owner of that record don't have a rôle, and i wanted to change the rôle of the owner but i couldn't find out How, 

i'm enabling self register in customer portal

setting a default profile which is : highVolumecustomer portal

i checked SiteProfil i called it : Login

and i wanted to set a default role for the Site Profile and for the HighVolumeportal and it seems that it's not allowed for those both, 

 

  • June 20, 2013
  • Like
  • 0

What I'm attempting to do here is replicate data from the Contact, Account and Contract objects into a custom object called Student_Lookup__cThe application is for a franchise that has multiple schools and they have security on the accounts that prevent one franchise from seeing another frachises students however, a student can attend class at another franchises location when travelingThis requires the franchises to be able to see limited information about the student to know if they have an active contract.

 

I thought what I'd do is run a nightly job that updates the Student_Lookup__c with the relevant information from the Contact, Account, and Contract objectsBasically duplicating the dataI'm not convinced I'm doing this the easiest way so I'm open to ideasHowever this is what I have so far but I'm receiving the above error on my Map statement.

 

 

public with sharing class clsRefreshStudentLookup {
	public void Refresh() {
		// Create Variable to update all the updates
		List<Student_Lookup__c> SL = New List<Student_Lookup__c>();
		
		// Set Today's Date
		Date dExpDate = date.today();
		
		// Gather Student_Lookup__c ID's to add to the data set below
		Map<String, ID> SList = new Map<String, ID>([Select ContractId__c, ID from Student_Lookup__c where ContractId__c <> '']);		
		
		// Query for Student with active Contracts 
		for (Contract[] Stud : [Select c.AccountId, c.Id, c.OwnerId, c.Program__r.Name, c.Program__r.School__c, 
			c.StartDate, c.EndDate, c.Student__c, c.Student__r.Student_ID__c, c.Student__r.FirstName, c.Student__r.LastName, 
			c.Student__r.Birthdate, c.Student__r.EC_Name__c, c.Student__r.EC_Other_Phone__c, c.Student__r.EC_Phone__c, 
			c.Student__r.EC_Relationship__c from Contract c where c.EndDate >= :dExpDate]) {
		
			for (Contract c : Stud ) {
				ID SLid = SList.get(c.id);
				
				// Update Student_Lookup__c
				Student_Lookup__c SLUpdate = New Student_Lookup__c (
					ID = SLid,
					ContractId__c=c.Id, 
					OwnerId=c.OwnerId,
					Program_Name__c=c.Program__r.Name, 
					Contract_StartDate__c=c.StartDate,
					Contract_EndDate__c=c.EndDate,
					Student_ContactID__c=c.Student__c,
					Student_ID__c=c.Student__r.Student_ID__c, 
					First_Name__c=c.Student__r.FirstName, 
					Last_Name__c=c.Student__r.LastName,  
					Birthdate__c=c.Student__r.Birthdate, 
					EC_Name__c=c.Student__r.EC_Name__c,
					EC_Other_Phone__c=c.Student__r.EC_Other_Phone__c,
					EC_Phone__c=c.Student__r.EC_Phone__c, 
					EC_Relationship__c=c.Student__r.EC_Relationship__c,
					School_AccountID__c=c.AccountID);
				SL.add(SLUpdate);
			}
		}
		upsert SL;
	}
}