cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
odOnCeox
Regular Visitor

Referencing a column inside of an expression without dynamic content

Hi,

I've been trying to reference a column inside an expression, but I can't seem to be able to do so. Is there any for me to actually do this without using dynamic content? I am using the expression as part of an OData filter for a Get Lists Dataverse action, so I cannot use the dynamic content at this stage of the flow, and I would prefer to keep this condition inside of the OData filter for efficiency. In an ideal world, the formula would look like this:

Screenshot 2022-01-06 142957.png

Where createdon references the column with logical name createdon

 

I need to translate the createdon column into date only, so that it can be compared to another date only value I have, as such:

Screenshot 2022-01-06 143149.png

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
odOnCeox
Regular Visitor

Instead of trying to use some convoluted workaround, I just used a lt and ge operator to constrain the time instead - checking if the time is over the whole day, bypassing the need to get rid of the time element.

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @odOnCeox 

 

Unfortunately you won't be able to format the column name on left hand side as expression. ODATA query expects the schema name (column name) on the left hand side. Only way to do is add a Filter action step after so that you can format the values on both sides.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
abm
Super User
Super User

Hi @odOnCeox 

 

Having another thought may be you could use the contains() ODATA Query. Worth a try and see if that works or not.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
odOnCeox
Regular Visitor

Instead of trying to use some convoluted workaround, I just used a lt and ge operator to constrain the time instead - checking if the time is over the whole day, bypassing the need to get rid of the time element.

odOnCeox
Regular Visitor

Instead of trying to use some convoluted workaround, I just used a lt and ge operator to constrain the time instead - checking if the time is over the whole day, bypassing the need to get rid of the time element.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,964)