Extract last row excel and use extracted data as email content - Automate

Erwan Sudiman 21 Reputation points
2021-12-23T00:39:33.687+00:00

Hello all.

Apologies in advance if this question has been asked many times. I am not a help vampire but I'm self-learning and stuck being unable to progress.

I've been stuck with this problem for two days now. I had a problem where I wanted to extract the last row of excel data and then send an email using the last updated/modified row of the said data. I've tried all the suggestions that I could find but am still unable to get the answer that I need. Below is my flow.

159862-screenshot-2021-12-23-at-32533-am.png
159797-screenshot-2021-12-23-at-32541-am.png

For my clarity - My excel sheet has 7 rows and my understanding is that the loop was applied to all of the rows hence instead of single email sent, I got 7 of it.

I understand the for each loop but the last output should be last(body('List_rows_present_in_a_table')?['value']) and including the toolnum in email content prompted apply to each function.

How can I avoid this apply to each or how can I improve my method?

Thank you very much for any reply.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,071 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yi Lu_MSFT 17,601 Reputation points
    2021-12-23T10:14:38.867+00:00

    Hi @Erwan Sudiman
    In fact we are currently providing help on SharePoint in the Q&A forum, and Power Automate is a product independent of SharePoint which we are not so familiar with. Regarding the difference between these two methods which is more related to Flow, we would recommend that you go to the forum dedicated to flow for more professional help:

    Microsoft Power Automate Community

    Thanks for your support and understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Blanco Zamudio Emmanuel 0 Reputation points
    2023-01-17T18:20:03.4933333+00:00

    hola,, como lo pudiste resolver, me podrias ayudar tengo el mismo enigma jeje,, saludos!!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.