You need to sign in to do that
Don't have an account?
cmark
is it possible to update a record in Professional? (URLFOR?)
Hello. I want to update a single value in a record with an
scontrol in Professional Edition. I know of no way to do
this. Are there any options? Will anything in URLFOR allow
me to do this? With the URL, I know I can produce the Edit view
and populate the appropriate field, but I'd like to skip that and save
the record.
thanks
chris
thanks
chris
BRupholdt
You most certainly can. Using the URLFOR method, you can specify the field name, value pair for the field you wish to edit and add ",save=1" to the end of the parameter list. This way the page will go to the edit cycle then automatically save without the need for user interaction.
This is an example of an s-control called by a custom button.
{!URLFOR( $Action.Opportunity.Edit , Opportunity.Id ,[retURL=URLFOR( $Action.Opportunity.View , Opportunity.Id ),opp11="Released",save=1] )}
In this case, opp11 is the field name for the Opportunity Stage. One caveat, if there is a validation error on the new data, then the edit page will be shown with the updates applied and the same error as would have appeared the user entered the data manually.