Random Number Button

Random Number Button

Hello everyone,

I am trying to create a button that will generate a random number and post the values to a formula field within Zoho CRM so I can use that random number as unique identifer rather than the Zoho CRM ID which increases sequentially.

Below is the formula.
rnum = now.toLong() / 5;
info rnum;
update = zoho.crm.updateRecord("Contacts", id, {"formS"});
return "Field Updated";

Here is the error.

Failed to execute function
  • Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function '754' Line Number:5