web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting records from S...
Power Automate
Unanswered

Getting records from Salesforce based on date

(0) ShareShare
ReportReport
Posted on by 53

Hi,

I currently have a Power Automate flow that is manually triggered. When it does, it calls teh Salesforce connector "Get Records" to obtain records. Below is the properties:

JasonYeung_1-1712862333191.png

The formulas are the following respectively:

formatDateTime(utcNow(), 'yyyy/MM/dd')

formatDateTime(addDays(utcNow(),-90), 'yyyy/MM/dd')

 

When I run it, I get the following error:

JasonYeung_2-1712862371820.png

 

If I put quotes around the 2 formulas in the filter, I get a different error:

JasonYeung_3-1712862404549.png

 

The full error is:

Salesforce failed to complete task: Message:

(Krow__Project_Status__c = 'Complete')) AND (Krow__Completion_Date__c <= '2024/04/10'))

^

ERROR at Row:1:Column:4261

value of filter criterion for field 'Krow__Completion_Date__c' must be of type date and should not be enclosed in quotes

clientRequestId: 0ce54a0a-63cd-496c-9d82-cea7127e8c9a

 

I also tried using the ticks function, but it doesn't seem to work. I was wondering how to filter records based on whether on how many days it was completed?

 

Jason

 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard