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
Amit SAmit S 

Task Record Type Overriding defaulting to user's default Record Type

Hi All,

I need to override the Task PageLayouts based on the Profile and Record Type.

But everytime Task Record is saved, Type of the record defaults to the default record type of the Profile of the user instead of redirecting it to the HCP record type.

Is there a way to override it? in Logs it show the correct 2nd Record Type(HCP) to be present on the record initially once the Page is redirected to Create the record.
But on Saving the record, its record type automatically gets changed to the default record type on the User Profile.

I have created two VF Pages and Extension Controller.

Has someone faced a similar issue and can you help me with this problem.
Best Answer chosen by Amit S
Amit SAmit S
Thanks for the reply Anjith, 

I updated the Record Type just before the insert and it resolved the issue.

All Answers

AnjithKumarAnjithKumar
Check your pagelayout assignments of task,record Type to profiles and  it may be causing from workflow field udpates/ code as welll. 
Amit SAmit S
Thanks for the reply Anjith, 

I updated the Record Type just before the insert and it resolved the issue.
This was selected as the best answer