Clear String field based on the value of other field

Clear String field based on the value of other field

Hello everyone,

We would like to be able to clear a string field (delete whatever has been written and make it empty) when another field (picklist) is changed to a specific value.

While I can empty other types of fields, I noticed that I can't do this for 1. String fields, 2. Multipick lists.

Is there any way, using deluge, to achieve this?

I've tried something like that but with no success:

  1. void automation.Offboarding_cancel(Int id,String kam_reason)
  2. {

  3. newmap = Map();
  4. newmap.put(kam_reason, null); 

  5. response = zoho.crm.updateRecord("contacts", id, newmap);
  6. info response; 

  7. }

Any ideas would be greatly appreciated for both scenarios (string field and multipick list).

Thank you,