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 Apps / How to run power autom...
Power Apps
Answered

How to run power automate flow via power apps (Rename Attachment in Sharepoint list)

(0) ShareShare
ReportReport
Posted on by 566

I am new about running Power automate flow via power app.

I want to run my flow via my power app.

My flow is nunning well at testing.

I manage to connect my my flow on my power app

but my formula inserted into a button does not work:

'Powerapps-Rename-Attachment'.Run(TextInput1.Text;Label2.Text)

Here is my flow code i want to run:

{
 "type": "Request",
 "kind": "PowerAppV2",
 "inputs": {
 "schema": {
 "type": "object",
 "properties": {
 "text": {
 "description": "Please enter your Input",
 "title": "NewFileName",
 "type": "string",
 "x-ms-content-hint": "TEXT",
 "x-ms-dynamically-added": true
 },
 "number": {
 "description": "Please enter a number",
 "title": "ItemID",
 "type": "number",
 "x-ms-content-hint": "NUMBER",
 "x-ms-dynamically-added": true
 }
 },
 "required": [
 "text",
 "number"
 ]
 }
 }
}

 

Categories:
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    The way you have shown your configuration, you are probably getting an error on the second argument of this statement because it is giving it a string while it expects a number:

    'Powerapps-Rename-Attachment'.Run(TextInput1.Text;Label2.Text)

    Try this instead:

    'Powerapps-Rename-Attachment'.Run(TextInput1.Text;Value(Label2.Text))

    If that doesn't solve the problem, please share the specific code item that Power Apps is flagging, along with the error message.

     

    Hope that helps,

    Bryan

     

  • Sormick Profile Picture
    566 on at

    Thank you! Works like a charm!

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 Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard