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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items Filter Query...
Power Automate
Unanswered

Get Items Filter Query Error

(0) ShareShare
ReportReport
Posted on by 30

Good Day, 

 

Please Help! I am new to this and am very stuck.

 

I am trying to build a basic flow that checks the property leases our company has. I want to trigger an email when the expiry date less the notice period in months is greater than or equal to today. I have tried many different options but can't seem to overcome this.

 

I receive this error message:

Unable to process template language expressions in action 'Get_items' inputs at line '1' and column '15191': 'The template language function 'mul' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#mul for usage details.'.

 

 

 

 

1.PNG

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @MitchTer,


    The error talks about the mul function. However, in your screenshot I don't see any mul function.

     

    Can you share the expression you are using in that filter query. I am assuming your are using a mul function within that adddays expression?

  • MitchTer Profile Picture
    30 on at

    Hi @Expiscornovus 

     

    Thanks for the reply, I am using the mul function. We have the notice period in months and I am trying to multiply that by -30 to get the days. I have added in the function below

     

    addDays('Lease_x0020_expiry_x0020_date',mul('Notice_x0020_period_x0020_in',-30),'yyyy-MM-dd')
     
    Thanks so much!
     
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @MitchTer,

     

    Can you try this expression logic instead. I have added an int function to convert the string to an integer.

    addDays('Lease_x0020_expiry_x0020_date',mul(int('Notice_x0020_period_x0020_in'),-30),'yyyy-MM-dd')

     

  • MitchTer Profile Picture
    30 on at

    Hi @Expiscornovus ,

     

    I tried and recieved this error:

    Unable to process template language expressions in action 'Get_items' inputs at line '1' and column '15191': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

     

    I took a screen shot of the column settings in case that may play a role?Notice Period.PNG

  • MitchTer Profile Picture
    30 on at

    All of the records do have a value in and they are either 1, 2 or 3

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @MitchTer,

     

    I need to get my morning coffee 😅. I had a better look at your first screenshot. I think we need to use a different approach, my bad.

     

    You are referring to fields of the Get Items action itself and not dynamic content from any of the previous actions. As far as I am aware the filter query field doesn't support these kind of expressions.

     

    Another approach would be to try and add a condition action after the Get Items action and do the comparison over there with utcNow.

  • MitchTer Profile Picture
    30 on at

    Hi @Expiscornovus 

     

    Thanks so much - I was able to get it right as you suggested. Hope the coffee was good!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard