• Aishwarya pandey 3
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi All,

I have a sample doubt on order of execution "Process Builder". Please let me know if anybody knows

Regards,
Siv
  • April 22, 2016
  • Like
  • 0

What will happen to validation rules and mandatory fields of an object when inserting records through apex class but not following validation rules or not providing the mandatory field values.

 

consider account object has name, city (mandatory), max_salary(has some validation rule), phone number fields.

 

if i insert

account s = new account (name =' bob', phone = '7896785678', max_salary='50000');

 

what will happen to this line while executing, will it fail because i have not provided mandatory field (city) and didn't follow validation rule for max_salary field.