You need to sign in to do that
Don't have an account?
Wooster
C# Create Case and Assign a Page Layout
I am using C# to create a Case in Salesforce but I am unable to assign this Case a Page Layout. We have a lot of custom fields and flows to assign certain Page Layouts based on criteria. Since I am unable to assign a Page Layout to the newly created Case, some of the fields that I am populating are not showing. Does anyone have any sample code on how to assign a Page Layout to a Case?
In your code check what record type(RecordTypeId) you are assigning to the record, cehck the corresponding page layout to validate if the page layout has all the fields.