Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qw3LcjkptL/5NcvVe+hCpe
Power Automate - Building Flows
Answered

HOW TO CREATE EXCEL WORKBOOK IN A CLOUD - I SHARE MY SOLUTION

Like (1) ShareShare
ReportReport
Posted on 1 Mar 2021 09:17:36 by 22

Hi to all developers ๐Ÿ˜‰

I hope that my solution can help you.

Here please find below how to solve the issue with lack of Excel business connector to create Excel workbooks on SharePoint in a cloud.

I assume you all will have SharePoint and Excel business connector.

Solution how to create Excel Workbook in a cloud:

First please place an blanc Excel file on SharePoint document folder which you will use when ever you will need to create a new workbook.

Then please follow the steps below ๐Ÿ˜‰

1. Add the SharePoint connector "Get file metadata" to get the ItemId

Why? --> We need to get the blanc Excel file id.

2. Add the next step which is second SharePoint connector "Check out file" and use the ItemId from the previous step.

Why? --> Check out a file in a document library to prevent others from editing the document, and your changes from being visible until the documented is checked in.

3. Now you can do some actions in the Excel file like Run a script, create table etc...

4. Add next SharePoint connector โ€œGet file contentโ€

Why --> We need to capture all the modifications done in the workbook from the previous step No. 3.

5. Add the next SharePoint connector โ€œCreate fileโ€

Why --> You will save the updated/changed workbook in a desired location with desired name. 

6. Add the final SharePoint connector โ€œDiscard check outโ€.

Use the ItemId from the step 1 to reverse all changes done to the file.

Why? --> We need to keep save the blanc Excel file from any changes to use it next time. If you check out a file and donโ€™t make changes to it, or you make changes that you donโ€™t want to keep, you can simply discard the checkout, rather than saving the file. If your organization tracks versions, a new version is created each time you check a file back into the library. By discarding the checkout, you can avoid making new versions when you havenโ€™t made any changes to the file.

 

Hope this will help the community.

Regards,

Miroslaw Gadek from Poland ๐Ÿ˜‰

  • Verified answer
    v-litu-msft Profile Picture
    on 02 Mar 2021 at 08:21:50
    Re: HOW TO CREATE EXCEL WORKBOOK IN A CLOUD - I SHARE MY SOLUTION

    Hi @MIREK1983,

     

    Thank you for your detailed solution and contribution to the community.

    This post could help user who don't know how to Create Excel Workbook.

    You could go ahead and mark the post as solved by clicking โ€œAccept as Solutionโ€ so that this thread will be marked for other users to easily identify!

    Best Regards,
    Community Support Team _ Lin Tu

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz โ€“ Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Communityโ€ฆ

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,662 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started
Loading complete