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
Wahid BuhariWahid Buhari 

public site - unauthorized error

Hi,

I am using public site to create cases from web. There will be 3 record types for cases. I am using extension to over ride standard save action and after creating case I am redirecting to another page. 
This is working as expected for 1 st 2 record types. But for the 3rd record type the case was created but redirecting is not happening and site is throwing unauthorized error. 
1)Tried 'Preview as admin' mode - But no error message was showing
2)Tried set debug log for guest user - But no logs are happening

Stuck with the issue. Any help is highly appreciated.

Thanks,
Wahid 
Best Answer chosen by Wahid Buhari
Wahid BuhariWahid Buhari
It was happened because I have not shared the 3 rd record type with guest users.
Solved this by adding 3rd Record type to the exisiting sharing rule.