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.

Using a variable in a find

Featured Replies

Hey All --

The solution is eluding me, so I'm hoping it is as simple as I think - I just can't get step one completed.

I've created a variable to set the current date minus 60 days - Get ( CurrentDate ) -60  = $RecordsGreaterThan60

now I wish to use that to find records that are less than the variable and have a second script run on the found records

Enter find mode []

Set Field [mydatefield; < $RecordsGreaterThan60] - but of course this does not work

Perform Find []

I feel it's a simple thing - but alas I've got no hair left to pull out

 

anyone, anyone....Bueller, Bueller.....

 

33 minutes ago, aalkemist said:

Set Field [mydatefield; < $RecordsGreaterThan60] - but of course this does not work

Try:

Set Field [ mydatefield; "<" & $RecordsGreaterThan60 ]

Not sure why you need the variable. You could set the field directly to =

"<" & Get ( CurrentDate ) - 60 

 

set variable  $RecordsGreaterThan60  =  Get ( CurrentDate ) -60 

perform find <$RecordsGreaterThan60  

uses two script step instead of three, which is 1/3 cooler.

 

 

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.