Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7429 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi im getting into a bit of a mess try to duplicating a parent and all its children.

In trying to duplicate all the children records, I have tried a loop.

Each time I create a duplicate, the records jump to the latest duplicated record so I cant move to the next record and duplicate again. I planned to apply the new ID number as each record is duplicated.

Any help would be greatly appreciated? thanks

Posted

It's easy with applescript, if the relation to child records is set up to auto-create.

Create a layout with ONLY the portal to child records on it.

Do not incude any calc fields in this portal.

No parent record fields.

Create this script:

Go to Layout [Line Items Only]

Perform applescript:

set dataList to current record

-- returns list

create new record with data dataList

Go to layout [original layout]

See attached example.

DupChildRecs.zip

This topic is 7429 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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