function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KMK91KMK91 

Insert Contact null Data

Hi ,

How to insert Contact null Data in Quote.

Ex : If(quote.contact.MailingCountry == null){
return (Passing error Msg)} how to insert test data for this .

Thanks
KMK
Best Answer chosen by KMK91
Abhishek BansalAbhishek Bansal
Hi,

Follow the below steps:
  1. Create a test contact and do not assign any value to MailingCountry.
  2. Now add one quote for this contact.
In this way you will be able to test the above lines with your test class.

Thanks,
Abhishek Bansal.
Gmail: abhibansal2790@gmail.com
Skype: abhishek.bansal2790
Phone: +917357512102