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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Triggering a flow - In...
Power Apps
Answered

Triggering a flow - Invalid argument type (Text). Expecting a Record value instead.

(0) ShareShare
ReportReport
Posted on by 315
in powerapps I trigger a Pa flow. 
 
 
Sometimes I need to run the flow without a triggerdate. So I have made the fifth parameter optional. 

Now when I try to trigger the flow I get this error. 
 
 
The flow triggers fine if I dont pass in a fifth parameter. If I change the field back to mandatory, the above code runs ok. 
I have refreshed the flow in the app a number of times. 
 
What could be the issue?
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,898 Most Valuable Professional on at
    Optional parameters need to be passed in the form of a record with the parameter name.  change the simple Text() function to 
     
    {"Trigger date": Text(...)}
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • nick9one1 Profile Picture
    315 on at
    thanks. that worked. Only change I had to make was single instead of double quotes..
     
    {'Trigger date': Text(...)}
    
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard