Jump 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.

Prevent a script from altering modified name date etc

Featured Replies

Hi there we have some records with the modified name / date / time etc fields set up to autoenter so we can track who last modified a record... thats fine.

 

We also have a script that runs which loops through all the records every so often performing various tasks.

 

The problem is that the modified fields now are updated because the script has modified the record! Is there anyway to prevent this from happening? I want the modified fields updated only when a user has modifed the record, not the scheduled script.

 

 

 

 

Try auto-entering a calculated value (replacing`existing value) =

Case ( IsEmpty ( Get ( ScriptName ) ) ; Get ( AccountName ) ; Self )

Note that this assumes there are no paused scripts during manual data entry.

One way would be to build a script that sets a $$global variable flag to turn on/ off recording.... in your script that does the modifications turn the flag to off.... and change your auto enter fields to calculation with If ( autoentermodificationtimestampfield ; "" ) & if ( $$flag is on ; Get (Timestamp) ; Self ) . The autoenter calc will fire everytime the field is modified and it will stored the last modification timestamp only if the $$flag is set to on.

I'm sure their are other ways to do this but its thd first to come to mind.

Another option would be to simply record what method caused the modification and leave the autoenter field alone. Alot depends on what reason you have for wanting to not record a modification to a field's data.

Create an account or sign in to comment

Important Information

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

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.