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

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

Recommended Posts

Posted

I have a script that adds a new record into a table.

The script is called from a different database and a code is passed in as a script parameter.

How do I check to see if the record has already been added?

I figured I needed to do a find, but I cannot get it to accept the script parameter as the argument to the find.

Posted

Have a relationship from db1 using your "code" as the relationship key. You can then check for the COUNT of related records before executing the rest of the script. I'm assuming that the "code" is unique.

Posted

Actually, using IsEmpty(childID) would be quicker than Count() - which has to count all related. And according to FM, the IsEmpty() test is perfect to check for related records. Just a thought ... :wink2:

This topic is 6934 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.