Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a lot of connected scripts that import an old system data schema into a new and "improved" schema. My problem is that every time I rerun the scripts, I have to go and reset the "next value" field back to the beginning. Is there a way via scripting that I can do this instead of having to resort to going to every file?

Posted

There is a "Set Next Serial Value" script step, in the Fields section. But one usually would be setting it to the last serial number in the imported data + 1, not "back to the beginning". Though it's up to you. There is also a GetNextSerialValue() function, in the Design functions section.

Posted

if you create a summary field = max( keyID) then set the next serial to the summary field+1

Posted

Thanks for the responses. I used the set next serial and it does exactly what I wanted. I want to reset to say "EMP000001" because I'm testing and debugging the import scripts, so going to the next highest isn't as clean as I want.

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