• rahul taneja
  • NEWBIE
  • 5 Points
  • Member since 2018
  • Salesforce Developer
  • MTX Group Inc.


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi All,

 

This may sound like a newbie question, I have started working on salesforce recently and a  bit stuck up on some implementations.

 

I am using the REST way to access salesforce - (OAuth2 to authenticate, and REST implementation to query Salesforce).

 

1. How do I impose a Unique Index constraint  on Email in CONTACT entity, basically I dont want to store duplicate email ids in Contact entities. How do we do it?

 

I have used Validation Rules to apply Mandatory Check on Email Column, but how do we impose a Unique Check.

 

2. Also, by default LastName in Contact entity is Mandatory. How to remove this mandatory check.

 

Can anyone help me regarding this?

 

Regards,

Naveen Kumar B.V