- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 19, 2024 01:59 PM
Is there a UI to build a formula and get the resulting formula? The formula builder for creating views is useful, but I can't seem to find a way to get the formula out of it.
Context: I'm trying to build a formula that filters records by 2 fields, an email field and a date field. What I have so far is: `AND({Notary 1 email (email)} = '${email}', IS_AFTER({Appt Date/Time (date)}, TODAY())` but the Airtable API request fails with a cryptic error: "The formula for filtering records is invalid: Invalid formula. Please check your formula text."
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 14, 2024 03:45 PM - edited ‎Aug 14, 2024 03:46 PM
Oh but putting the datetime string in single-quotes seems to have fixed the issue! Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 19, 2024 10:11 PM
Hmm, I don't know of any such UI I'm afraid
For your specific issue, I suspect it's due to using "TODAY()" in the API request, which I don't think is accessible in that form. I would try:
1. Creating a new formula field with the formula "TODAY()" called "Today" or something
2. Updating the formula filter to be:
AND({Notary 1 email (email)} = '${email}', IS_AFTER({Appt Date/Time (date)}, {Today})
Lemme know if that doesn't work and I'll see what I can do
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 14, 2024 03:39 PM
Interesting idea. I tried passing in the timestamp as an ISO8601-formatted string rather than using `TODAY()`, that didn't work either -- I'm still getting the same "Invalid formula" error
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 14, 2024 03:45 PM - edited ‎Aug 14, 2024 03:46 PM
Oh but putting the datetime string in single-quotes seems to have fixed the issue! Thanks!
