Skip to main content
Solved

Simple Script to duplicate record in automation

  • Jun 10, 2023 11:32 AM UTC
  • 5 replies
  • 492 views

Forum|alt.badge.img+6

I'm having a hard time finding a simple script that will allow you to duplicate a record via automation.

My end goal:

Trigger: When a record matches a condition (i.e. a checkbox is checked off)

Action: Run script --> this is where I can't find a script online! I need this script to duplicate the selected record.

Just simple as that. Can someone help me?

 

Thank you!

Best answer by Stephen_Orr1

This can be accomplished without a script. 

Trigger: when record matches conditions, checkbox checked

Action: create record, add all fields and populate them with the values from the trigger record (configure each value to be dynamic by clicking the gear icon)

View original
This topic has been closed for replies.

5 replies

Forum|alt.badge.img+18
  • Inspiring
  • Answer
  • Jun 10, 2023 12:14 PM UTC

This can be accomplished without a script. 

Trigger: when record matches conditions, checkbox checked

Action: create record, add all fields and populate them with the values from the trigger record (configure each value to be dynamic by clicking the gear icon)


Forum|alt.badge.img+6
  • Author
  • Inspiring
  • Jun 12, 2023 10:37 AM UTC

This can be accomplished without a script. 

Trigger: when record matches conditions, checkbox checked

Action: create record, add all fields and populate them with the values from the trigger record (configure each value to be dynamic by clicking the gear icon)


Oh my gosh, I can't believe I didn't think of that immediately 🙄

THANK YOU!


Forum|alt.badge.img+6
  • Participating Frequently
  • Sep 14, 2023 9:56 AM UTC

This can be accomplished without a script. 

Trigger: when record matches conditions, checkbox checked

Action: create record, add all fields and populate them with the values from the trigger record (configure each value to be dynamic by clicking the gear icon)


Is there a way to make this resistant to future structure changes? In other words, to make the duplication keep working if a column is added or deleted from the table? Otherwise we would always have to remember to update the automation everytime a change is made.

Also, our table has dozens of columns. To have the data for each field manually listed on the automation would be very error prone.

Thanks in advance 


Forum|alt.badge.img+1
  • New Participant
  • Apr 12, 2024 7:09 AM UTC

This can be accomplished without a script. 

Trigger: when record matches conditions, checkbox checked

Action: create record, add all fields and populate them with the values from the trigger record (configure each value to be dynamic by clicking the gear icon)


Not a solution when you have hundreds of fields...


Forum|alt.badge.img+1
  • New Participant
  • Jun 28, 2024 6:53 AM UTC

How do you refer to the triggered record in the create record part? 
Thanks in advance