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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Tips - Record data from Command Prompt to Excel by Microsoft Flow

(0) ShareShare
ReportReport
Posted on by 1,724

I want to share a tips to record data from Command Prompt to Excel by Microsoft Flow.

 

Summary:

When a Command run with data on Command Prompt,
add the data to Excel file on OneDrive for Business.

 

Use Scenario:

Record data to Excel from Command Prompt.

 

Flow overview:
Trigger : Request - When a HTTP request is received

Action : Excel Online (Business) - Add a row into a table

2018-08-12 (1).png 

Enter or paste a sample JSON payload for sending from a Commnd

{
 "Name": "a",
 "Value": 100
}

 

Request Body JSON Schema for trigger

{
 "type": "object",
 "properties": {
 "Name": {
 "type": "string"
 },
 "Value": {
 "type": "integer"
 }
 }
}

Command

 

PowerShell -Command "& {$URI = \"...\"; $body = ConvertTo-JSON @{ 'Name'= 'C'; 'Value'=21 }; Invoke-RestMethod -uri $URI -Method Post -body $body -ContentType 'application/json'}"

Excel

1. Enter "Name" to A1 cell

2. Enter "Value" to B1 cell

3. Format as table

2018-08-12 (2).png 

Regards,

Yoshihiro Kawabata

I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    Re: Tips - Record data from Command Prompt to Excel by Microsoft Flow

    Hi @yoshihirok,

     

    Thanks for your sharing.

     

    Best regards,

    Alice

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard