The problem is here how do i check duplicate values after entering values.
When user enters Userid in Userid field then the System checks if there is already a user in the system based on the id mentioned in the userid field on the account record.
- User opens the broker account for which a user needs to be created in the system.
- User clicks on ‘Create user’ button on top of the page. This button is not activated till the Account is onboarded.
- System checks if there is already a user in the system based on the id mentioned in the userid field on the account record.
- If there is no value in this field, the system will complete this duplicity check on the basis of email id of the Account.
- If no matching user is found, system will create a user in the system using the Account information.
- The userid field from the Account will be the userid of the user.
My Visualforce code:
<apex:page controller="createuser" action="{!fetchAccount}">
<apex:pageMessages ></apex:pageMessages>
</apex:page>
My Apex code:
..to be added ..
Best Answer
This is the answer.........
public class ContactDedupeController {
}