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
Tim MinottiTim Minotti 

Can one button update record and simultaneously redirect to url?

Objective:

Once a button is clicked on the Campaign Object, the user is redirected to a url, and the record is updated.

I don't care which field is updated, this is just to alter the last modified date on the record for a different process, but I want the button to trigger this while at the same time redirecting to a url - ( Ideally just a "phantom save" with no record actually updated).

Does anyone know the best way to go about this/ if this is possible?  Thanks!

 

sravan velamasravan velama
Hi Tim,

You are saying that you want to update a record and redirect to a url. It can be done through java script where you can update any field of the that record an redirect to a url by using window.Location

FLOW:-----CLICK BUTTON ON THE DETAIL PAGE---->POP-UP COMES TO UPDATE SOME FIELD VALUE---->REDIRECTED TO SOME URL (WHILE THE RECORD GETS SAVED).