You need to sign in to do that
Don't have an account?
Matthew Allen
List button to change multiple records
Hi,
I have a Javescript button that basically just ticks a box that in turn triggers a Process Builder to update a date field with todays date and a text field withthe Users name. This works on a contact by contact basis on the contact page...
I have created a list view button using the same code so that multiple contacts could get edited with the same date and user stamp, however it doesn't work..
The code I am using is this
{!requireScript("/soap/ajax/32.0/connection.js")}
alert("Details Correct Stamp in Process");
var update_Contact = new sforce.SObject("Contact");
update_Contact.Id = "{!Contact.Id}";
update_Contact.Details_Correct_No_Change__c = true;
sforce.connection.update([update_Contact]);
alert("Contact Stamped - Thank you");
window.location.reload();
Very basic, but am I missing some extra code to get it to work for multiple contacts at a time?
Thanks
Matt
I have a Javescript button that basically just ticks a box that in turn triggers a Process Builder to update a date field with todays date and a text field withthe Users name. This works on a contact by contact basis on the contact page...
I have created a list view button using the same code so that multiple contacts could get edited with the same date and user stamp, however it doesn't work..
The code I am using is this
{!requireScript("/soap/ajax/32.0/connection.js")}
alert("Details Correct Stamp in Process");
var update_Contact = new sforce.SObject("Contact");
update_Contact.Id = "{!Contact.Id}";
update_Contact.Details_Correct_No_Change__c = true;
sforce.connection.update([update_Contact]);
alert("Contact Stamped - Thank you");
window.location.reload();
Very basic, but am I missing some extra code to get it to work for multiple contacts at a time?
Thanks
Matt