Batch update with a custom buton

Batch update with a custom buton

is it possible to batch update selected record with a custom button in list view?

i tried it out in the lead module.. if one lead is selected it works but will not if 2 or more are chosen.

here is my simple function i did to try it out


string  Untitled_Function7 ( string leadID string Contrat

FixedContract=input.Contrat.replaceAll("0000","");
FixContractNum = zoho.crm.updateRecord("Leads",input.leadID.toString(),{ "Num. Contrat HD" : FixedContract });
return "";