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 / Filling up a Text Inpu...
Power Apps
Answered

Filling up a Text Input through a Flow

(0) ShareShare
ReportReport
Posted on by 71

Hi,

 

I have a flow that obtains an employee's ID by taking their email input. I want that when an employee fills in their email, the ID field is automatically filled up. I have something similar for when an employee inputs their email, the manager field is filled out:

 

//In Default
If(
 !IsError(Office365Users.Manager(Email.Text).Mail), Office365Users.Manager(Email.Text).Mail,
 ""
)

 

This works, however, when I try to do this for Employee ID field, I get a warning saying "Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app":

 

//In Default
If(
 !IsError(testflow.Run(Email.Text, Email.Text).employeeid), testflow.Run(Email.Text, Email.Text).employeeid,
 ""
)
//testflow.Run(first param: IntializeVaraible_Value, vEmail_Value)

 

Anyone know any work arounds to this? It could also be how I built my flow making it more difficult? (I'm new to power automate just scratched up and made this pretty fast, and I know it works though through testing).

 

Thanks, in advanced!

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    Where are you putting the code to get the employee ID? From the error I'd gues it was on the text box itself. For this to work you need to have a button that the user would click after filling in the employee email. 

     

    The buttons onSelect formula would be something like 

     

    IfError(
     // If there is an error updating the context of empId
     UpdateContext({empId: testflow.Run(Email.Text, Email.Text).employeeid}), 
     // Notify me
     Notify("There was an error in the flow), testflow.Run(Email.Text, Email.Text).employeeid
    )

     

    then set the text value of the employee ID text box as newer context variable empId.

     

    Hope that helps

  • ash15 Profile Picture
    71 on at

    The code for the employee ID is in the Default section of the Input text box. Personally, I rather not have a button for visual purposes, I want it so that when the user types out their email the employee ID is also typed out (just like the manager input box). I don't know if this is possible but thank you for the suggestion.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok... I understand about the button.....

     

    You could put the formula in the OnChange property of the employee email, but I've got a feeling that might trigger on every keystroke.

     

    The only other option I can think of is to try and replicate your flow inside the PowerApp, similarly to how you've used the Office365 connection directly.

     

    What exactly is your flow doing? Where is it pulling the employee ID from?

  • Verified answer
    ash15 Profile Picture
    71 on at

    Okay I just found a work around through Office365Users like you suggested. When I was looking through other threads it was said that you can only obtain the employee ID through a flow because conventionally it is not in the Office365Users connector. Turns out it was for me as it was labeled under nicknames...

     

    Thanks!

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard