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
Puspendra SinghPuspendra Singh 

bypass a required field on client org

Hi I am creating a integration package that include an apex class which makes a call out to an external webservice and pull data and insert it into salesforce. This is working fine in my developer org. Now when i created a managed package and installed it in client sandbox, the process of insertion failed as client has one of the custom lookup field on Case object that looksup to contact. This field is made required. This is causing my process fail. Can someone suggest how do i bypass it in?
Best Answer chosen by Puspendra Singh
Raj VakatiRaj Vakati
you can't able to bypass the required if its set at the filed level

so this is the one of config option 

create validation to make it required though validation and bypass the validation for sys admin .. which solve problem

All Answers

Raj VakatiRaj Vakati
you can't able to bypass the required if its set at the filed level

so this is the one of config option 

create validation to make it required though validation and bypass the validation for sys admin .. which solve problem
This was selected as the best answer
Puspendra SinghPuspendra Singh
Thanks Raj! Appreciate your help.