Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Reminder before the exp. date

(0) ShareShare
ReportReport
Posted on by 117

Hello,

 

My sharepoint list is like below.

koray1_0-1669117196825.png

 

There are 2 things I want to do.

 

1-) SKT column means expiration date. I want it to send an e-mail 7 days before the expiration date.

 

2-) There are lot numbers for the material codes in the titer column. If the Total_Stock total in all lots of a material code is less than the number in Safety_Stock, send a notification mail.

 

I checked many topics in the forum, I tried, but unfortunately I could not. I will be grateful if you could help me.

 

Regards.

 

  • koray1 Profile Picture
    117 on at
    Re: Reminder before the exp. date

    Hi @grantjenkins 

    You're great, it's working now. Thank you so much 🙂
    Can I make this process automatic every day?
    Without the need to change a line.

    There was the following request.

     

    koray1_0-1669727804161.png

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Reminder before the exp. date

    Are you adding the output from both of those in the Condition? If so, then there shouldn't be an error that one of them is a string (not a number). Can you check the Outputs you used in your Condition?

  • koray1 Profile Picture
    117 on at
    Re: Reminder before the exp. date

    hi @grantjenkins 

     

    Sure.

     

    koray1_0-1669724795221.png

     

    koray1_1-1669724817529.png

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Reminder before the exp. date

    When you run the flow can you click on Show raw outputs for both Total Stock and Safety Stock to ensure they are both numbers (not enclosed within double quotes).

     

    grantjenkins_0-1669720473145.png

     

  • koray1 Profile Picture
    117 on at
    Re: Reminder before the exp. date

    Hi @grantjenkins 

    I've checked everywhere but it keeps giving the same error.

    koray1_0-1669715005171.pngkoray1_1-1669715036022.pngkoray1_2-1669715118196.png

     

    koray1_3-1669715169116.png

     

    koray1_8-1669715677203.png

     

    koray1_5-1669715312625.pngkoray1_6-1669715363868.pngkoray1_7-1669715606212.png

     

    koray1_9-1669715867668.png

     

    When I run a test for Flow, it calculates Total Stock and Safety Stock correctly.

     

    Test for product no: 423538
    Total stock is:  445 (400+45)

    Safety stock is: 480

    koray1_10-1669716071879.png

     

     

     

    koray1_11-1669716112561.png

     

    but it gives an error in the condition part 😞

     

    koray1_12-1669716170386.png

    koray1_13-1669716319806.png

     

     

     

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Reminder before the exp. date

    Values of 0 wont' cause an error.

     

    Are you able to check the internal column names for your Total Stock and Safety Stock and make sure those are the names you're using in your expressions?

     

    Also, just to confirm, you updated both the expressions for Total Stock and Safety Stock (not just pasted the text)?

  • koray1 Profile Picture
    117 on at
    Re: Reminder before the exp. date

    Hi @grantjenkins 

    Columns don't actually have blank lines. I also checked the column types. All of them are number type.

    koray1_0-1669305160778.png

     

    The Total_Stock row has numbers 0. Could it be related to that?

     

    koray1_1-1669305511023.png

     

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Reminder before the exp. date

    Are some of your Safety Total columns blank (don't have a number)?

  • koray1 Profile Picture
    117 on at
    Re: Reminder before the exp. date

    It doesn't accept Titre so I changed as Title

     

    koray1_0-1669296363712.png

     

     

    New issue:

    koray1_1-1669296433274.png

     

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Reminder before the exp. date

    In your Filter Query on Get items you should be testing with Titre, not Product No.

     

    And for Total Stock and Safety Stock you need to add those expressions as per the screenshot below (not just pasted into the input as text):

     

    grantjenkins_0-1669295533481.png

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1