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

Perform find with variable

Featured Replies

I'm re-writing some of my find scripts and running into a brick wall with the perform find script step.

I'm trying to find the records created in the current month, using either a variable or a calculation of Month(date).

The problem I'm running into is the validation of the date field when using the PerformFind(Restore) Step.

My old way of;

Set Variable $Month;Month(date)

enter find mode

set field; datefield;$Month

perform find

works, but this seems like a lot of extras just to find records created in the current month.

Am I missing something?

No. Stored requests are literal - they cannot use a calculation or a variable.

Since you are looking for the current month always, you don't need to use a variable. You can handle it this way:

Enter Find Mode [ ] uncheck pause

Set Field [ datefield ; Month ( Get ( CurrentDate ) ) ]

Perform Find [ ]

This will give you all records for the current month/year.

LaRetta :wink2:

  • Author

Thanks LaRetta. The finds in question actually have several attributes that are being searched for. This was my reasoning behind using the variables.

I was really looking for a way to tidy up the script and use the Perform Find Script step to include the various parts.

Maybe in a future release we can use variables in stored finds.

Thanks for the help.

Since you are looking for the current month always, you don't need to use a variable. You can handle it this way:

Enter Find Mode [ ] uncheck pause

Set Field [ datefield ; Month ( Get ( CurrentDate ) ) ]

Perform Find [ ]

This will give you all records for the current month/year.

LaRetta :wink2:

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.