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.

Duplicating a found set of invoices

Featured Replies

Hi all,

I have a found set of invoices that I need to duplicate. I would like to loop through the found set and create a duplicate record for each invoice then set a couple fields before moving on to the next one. Of course I realise it isn't as simple as looping through and duplicating because once the first duplicate record is created it becomes the last record in the found set and the script then exits the loop (all the better of course, otherwise it would get stuck in an infinite loop).

So, Can anyone tell me what the best techniqe for doing this would be?

Thanks

Ron

Perform Find

Set a $counter = Get ( FoundCount )

Loop

Exit Loop If ( $counter = 0 )

Go to Record $counter

Duplicate Record

Omit Record

Set Variable $counter - 1

End Loop

  • Author

Beautiful!! Thank you very much. I will let you know how it works out.

  • Author

Worked perfect!! You Rock!!

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.