System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Campaign__c]: [Campaign__c]
hi pusjkar, you need to fill out this field while inserting your object. E.g => Contact con = new Contact(); con.firstname = 'test';//Optional filed con.lastname = 'myName';//this is required field insret con; if you forget to putting lastname then you will get REQUIRED_FIELD_MISSING error.
In nutshell, I will say that fill out Campaign__c field when you are inserting object.
don't forget to mark it as best answer. I'm waiting for your response.
hi pusjkar, you need to fill out this field while inserting your object. E.g => Contact con = new Contact(); con.firstname = 'test';//Optional filed con.lastname = 'myName';//this is required field insret con; if you forget to putting lastname then you will get REQUIRED_FIELD_MISSING error.
In nutshell, I will say that fill out Campaign__c field when you are inserting object.
don't forget to mark it as best answer. I'm waiting for your response.
you need to fill out this field while inserting your object.
E.g => Contact con = new Contact();
con.firstname = 'test';//Optional filed
con.lastname = 'myName';//this is required field
insret con;
if you forget to putting lastname then you will get REQUIRED_FIELD_MISSING error.
In nutshell, I will say that fill out Campaign__c field when you are inserting object.
don't forget to mark it as best answer.
I'm waiting for your response.
Thank you
All Answers
you need to fill out this field while inserting your object.
E.g => Contact con = new Contact();
con.firstname = 'test';//Optional filed
con.lastname = 'myName';//this is required field
insret con;
if you forget to putting lastname then you will get REQUIRED_FIELD_MISSING error.
In nutshell, I will say that fill out Campaign__c field when you are inserting object.
don't forget to mark it as best answer.
I'm waiting for your response.
Thank you