Still trying to figure out how to modify this script to work correctly!

Topic Labels: Automations
661 1
Showing results for 
Search instead for 
Did you mean: 
7 - App Architect
7 - App Architect

Continuing the discussion from Help with a script please!: @Bill.French

1 Reply 1

the script puts value (if not empty) of ‘Update Mapper Schedule Name - To Paste’ field to the field “Name”. If you trigger by checkbox, you can use this record values if the left part, together with ID and omit querying at all.
So you need just 3 lines:
set table
get config, can be done by: let {id, topaste}=input.config()
if (topaste) …do_update…

optional, fourth line console.log(result)

To be honest, you don’t need script at all, you would better do it in UI with conditional action.(and even simple action, moving ‘topaste’ check into trigger ‘When record matches condition’)