0

I have a lightning component which creates case record on clicking 'Submit'. For both System Admin and custom profile, case is created without any issues. But for custom profile, when it tries to redirect to the lightning record page, it shows the following error.

Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Unexpected HTTP Status Code: 403

I believe this might be permission issue , so I checked FLS, Sharing Settings as well. Everything is normal but still I'm not able to redirect to the record that was created. Also when I tried global search using the case number, it's not visible. But for system admin user, I can see it.

  • 2
    are you able to see that case record from object record page? – User6670 Apr 10 at 8:34
  • does the url you're redirecting to contain null at the end where the record Id would be? it is likely that you're not redirecting to an actual record, likely due to an error on your save that is unhandled and redirecting always? or possibly not formatting the redirect properly – Ronnie Apr 13 at 0:13
  • URL seems to be fine because I'm being redirected to the record page if i was sys admin profile user. This issue occurs only for custom profile users – sfdcOwl Apr 13 at 6:47
0

This is a case of no access to the record. If the object has OWD private, if the record is not created by the user having the custom profile , he won't have access.Did he get access to the record by sharing ? Looks like he did not...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.