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 / Bookings page with Pow...
Power Automate
Unanswered

Bookings page with Power Automate flow Help

(0) ShareShare
ReportReport
Posted on by 13

Hi,

 

I have created a Bookings page which has a specific customer question with a yes or no answer required when they book a service

I am trying to create something in PA with a flow that will look at a OneDrive Excel table with one column and a string of text in one cell (c 100 rows).

I want something that will pick out the first cell text and provide it in the customer confirmation email when they make a booking if they answered YES to a specific question.

 

Having a play around but getting a little lost as I have never done this before.

 

Any help would be appreciated.

Thanks

Adam

CleanShot 2023-05-02 at 10.17.55.png
Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @adamwelch 

     

    As per my understanding, you want to fetch the first cell of the first row from the excel sheet placed in one drive. To achieve this, pls follow the steps below:

    To fetch the first row of an excel, you can use "List rows in a table action" and set the 'Top Count' property to 1 as shown below:

    ManishSolanki_0-1683020597457.png

     

    Next, to get value of Column1 column from first row, use the below expression inside body of "Send an email" action:

    first(outputs('List_rows_present_in_a_table')?['body/value'])?['Column1']

    ManishSolanki_1-1683020822223.png

     

    In case your issue resolves then please remember to give a 👍  and accept my solution as it will help others in the future.

     

    Thanks

  • adamwelch Profile Picture
    13 on at

    Hi @ManishSolanki - yes I do but only if the customer booking a services chooses Yes from the mandatory question I have created.

  • adamwelch Profile Picture
    13 on at

    It would also need to send an email to the customer who booked the service

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi Adam,

     

    Please check the value of Custom Question by adding a condition inside 'Apply to each' action. You can use "condition" action as shown below:

    ManishSolanki_0-1683024191469.png

     

    Inside "Yes" path, add both the actions which were mentioned in my last reply.

    Set the customer email as recipient in the 'send an email' action as shown below:

    ManishSolanki_2-1683024477374.png

    I hope that my steps will help you in designing the exact flow you are looking for.

     

    If it helps you then please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • adamwelch Profile Picture
    13 on at

    Thanks for your help with this so far @ManishSolanki . I have sent you a PM back.

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @adamwelch 

     

    I tried designing sample flow, please follow the below instructions:

    1. Trigger when a booking is done. It will iterate all the custom fields.

    ManishSolanki_0-1683194440486.png

     

     

     

    1. Comparing the custom fields question and answer

    ManishSolanki_1-1683194440304.png

     

     

     

    Inside “Yes” path when condition becomes true:

     

    1. If condition is true then flow will execute  the “Yes” path. Here we are fetching the vocher code from the excel file. The excel file is placed in one drive and has a “Voucher” as a column name with in a table “Table1”. The sample excel has been attached at the end of this document.

    ManishSolanki_2-1683194440488.png

     

     

     

    1. Sending an email to customer with voucher from excel sheet. Please modify the email subject and body as per your need:

    ManishSolanki_3-1683194440489.png

     

     

    Expression used in above screenshot is:

    first(outputs('List_rows_present_in_a_table')?['body/value'])?['Voucher']

     

     

    1. Finally, delete the row from the excel file using “Delete a row” action.

    ManishSolanki_4-1683194440497.png

     

     

    Same expression will be used for deleting a row in excel sheet:

    first(outputs('List_rows_present_in_a_table')?['body/value'])?['Voucher']

     

     

    Sample excel for storing vouchers:

    ManishSolanki_5-1683194440515.png

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • adamwelch Profile Picture
    13 on at

    Hi @ManishSolanki 

     

    Many thanks again for your help with this. I think I have setup the flow up based on your instructions but it's not working. It seems to fail at the part where it's looking for the custom question answer. See screen shots attached.

    CleanShot 2023-05-04 at 12.08.00.png
    CleanShot 2023-05-04 at 12.06.46.png
    CleanShot 2023-05-04 at 12.06.09.png
  • adamwelch Profile Picture
    13 on at
    CleanShot 2023-05-04 at 12.08.33.png
  • adamwelch Profile Picture
    13 on at

    figured it out, it works fine if I don't set a send from email address in the advanced options

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
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard