You need to sign in to do that
Don't have an account?
bmartinez76
Profile ID check script help.
Hello, I'm trying to create some code for an S-control that checks the users profile and if not an administrator it redirects them to another page. If the user is an admin it allows them to delete otherwise it will give them a message saying "only admins can delete". The reason I want to do it this way is because we have a group that deals with cases and I wish to give them manage case ability but not delete. I removed the delete button from their page layout but when you click on cases you can see the del link in the view layout and i can't remove it. I am trying to override the delete button so that only a person with an admin profile can delete a case.
I have so far created a redirect (below) but can't seem to find coding on how to check the users profile when they click on the link. Can someone assist me please?
(admin profile ID)
00e00000006okRY
Code:
<html> <body> <script language="JavaScript"> <!-- window.parent.location.href = ("https://na5.salesforce.com/500/o"); --> </script> </body> </html>
This code should get you going in the right direction. Please let me know if you need assistance.
Code:
With Enterprise you will have everything that you need. It has the API enabled which will give you the ability to do all of the API calls. These let you do everything from creating a record to deleting a record.
Professional Edition doesn't have access to the API by default so they would have to use browser manipulation to do anything.
Code:
I appearantly missed this, or I would have responded ages ago. My apologies. Best of luck with your development!