Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Duplicate Multiple Records?

Featured Replies

File 'A' has record that I need to duplicate and change a few field values for each record. I have a script in Field 'B' that initiates the script.

- Goto Related Records (File A)

- Perform Ext. Script (File A -> Duplicate Records)

........- Goto Record (First)

........- Loop

.............- Duplicate Record

.............- Set Field 1 = ""

.............- Set Field 2 = ""

.............- Set Field 3 = File C::Global_Value

.............- Goto Record (Next, exit after last)

........- End loop

It will only duplicate the first record in the relationship, and then stop. Any ideas? Thanks! : )

When your records aren't sorted, and you duplicate a record, you'll then be on the duplicated record, which will be the last record. So going to the next record will exit the loop.

There are various methods to deal with this: you can start with the last record and use a couple of omits after duplicating, or what probably will work for your existing script, just sort the records before your loop, in which case the duplicated record will follow the record you started with. Note that sorting will automatically put you on the first record, so you can get rid of the Go to first record step.

  • Author

Hi, thanks for the quick reply. I'm not too familiar with sorts, but I had tried yesterday what you said and it worked fine.

However, when I tried it today, I get an error because it cannot restore the sort. I thought, from my reading, that the sort that is currently active when you create the script will be stored along with the script (so you can use the no dialog function). But apparently my script did not?

I guess this is getting into another area from my original topic, but how do I create the script and sort so that I can have it work every time with no dialog??? Thanks

  • Author

Ahhhhh, nevermind, I'm an idiot. I did not have the 'restore sort' option checked. Thanks for the help though, it worked great!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.