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 / Tips - Record data fro...
Power Automate
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

Categories:
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    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

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
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard