You need to sign in to do that
Don't have an account?
BradD
How do I run an s-control as an administrator?
I want to run an s-control that will be invoked by a standard user, but the s-control needs to update a field that's only accessible to an administrator... is there a way to "log-in" as an administrator in the background so the s-control can run? I thought you can do something with a session id of an admin, but wouldn't that expire eventually? Someone please help, thanks! -Brad
I'm not familiar with a way to do what you are looking for as in the login. What I have done in the past is to unlock the field so that all profiles can access it. Then create a custom checkbox field that isn't on the page layout but is available to all users. You can then create a validation rule that will prevent the user from changing that first field unless the checkbox is set to true. You can then use the sControl to set the value to true and modify the field in question. It is a bit ungainly but it will do what you are looking for.
I also setup a workflow and field update that will change the checkbox from true to false so that you don't need to worry about it remaining in the true state.
Let me know if this helps.
When you use this method to overwrite the existing user's login, does it log the admin out after? Will you have to do a log out after so the user is not logged in as the admin, with the admin permissions?
Thanks for the information. This is what I thought would happen.
mortalsusers), so that the field can effectively only be updated via the API (that is, your script). Odds are, the user won't even know the field's there to mess with it. Better yet, use a workflow field update to update the field... in most cases, you can use a formula to derive your final values and workflow field updates ignore field level security without compromising your own administrative permissions.~ sfdcfox ~