How can I get a variable "today's date" in String/Date Format for Update Constituent Custom Field
I have created a flow that works when I hard-code a date in the options, but this is going to run daily and it want it to use "today's date". I initially tried utcnow(), but that didn't work, so then I used the let copilot create an expression for you, which gave me formatDateTime(utcNow(), 'yyyy-MM-dd'), but that's not working either.
The error message I'm getting is below. Google was no help in figuring out where this is going wrong. I'm sure it's probably something relatively silly and simple and I'm just a clueless noob. Thank you!
Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'body' validation failed in workflow operation 'Update_a_constituent_custom_field': The parameter with value '"formatDateTime(utcNow(), 'yyyy-MM-dd')"' in path 'body/date' with type/format 'String' is not convertible to type/format 'String/date'.'.
Here is a screenshot of my flow. Again, it works perfectly when I hard-code a date in the Date field.
Answers
-
The issue is you "typed" in the expression, which is treated as just a string/text.
You need to click on the expression icon and type the expression into there (see image below).
Not sure if you should be concern about timezone, but if you do, you can use this expression instead, which convert the UTC time to Eastern Standard Time. (imagine your flow run at 11PM at night, and UTC date would be next day already, but if you convert, it will be "today" in your timezone). Here's the link to see the full list of timezone to convert to (you want the text in the "Timezone" column).convertFromUtc(utcNow(), 'Eastern Standard Time', 'yyyy-MM-dd')
1 -
Thank you, @Alex Wong, that was exactly what I was missing. As you likely surmised, I was so close, but copied/pasted the formula that was generated back into that field instead of hitting the 'add" button at the bottom of the function section. I so appreciate your help. I just tested my flow and it's working perfectly now. Also, thank you for the tip on the time zone, I wasn't familiar with that, but added that piece to my formula.
1
Categories
- All Categories
- 1 Blackbaud Agents for Good™
- Raiser's Edge NXT test
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 661 Blackbaud Grantmaking™
- 583 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 947 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.8K Blackbaud Raiser's Edge NXT®
- 3.8K SKY Developer
- 251 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 243 Member Lounge (Just for Fun)
- 37 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 804 Community News
- 3K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)



