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

Power Automate Update list item with User's Department

(0) ShareShare
ReportReport
Posted on by 12

I'm somewhat new to Power Automate and I've been banging my head on this seemingly simple scenario:

 

User enters a new record. The record contains a People column. A single user name is entered in that field.

 

On submit, I want Power Automate to get the Department name for that user, and populate a text field called Department.

 

I've successfully used "Get My Profile" and extracted the Department name and forwarded it in an email.

 

But for the life of me, I cannot figure out how to get the string to populate the Department field on the record.

 

The most obvious method leaves the field blank:

rpawliko_0-1713302714694.png

 

And I've attempted to do it using a JSON trick I found online:

rpawliko_1-1713302824294.png

But always the same result - the flow runs without error and the Department field remains blank.

 

Help!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    151,709 Most Valuable Professional on at
    Re: Power Automate Update list item with User's Department

    Hi @rpawliko ,

    You are welcome to post here, but this seems to be a Power Automate question and you will probably get a quicker response from the experts over at the Power Automate Community

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Power Automate Update list item with User's Department

    HI @rpawliko,

    Do you mean that Department column is single-line-of-text type?

     

    If so, you should be able to use the Get user profile (v2) action for this. The output of that action returns the Job Title and Department fields.

    vqiaqimsft_0-1713318964715.png

    If your  Department column is single-line-of-text type, please directly apply the department string to this field.

  • rpawliko Profile Picture
    12 on at
    Re: Power Automate Update list item with User's Department

    Yes the Department column is a single line of text.

     

    I've been able to capture the string in an email that goes out at the end of the workflow.

     

    However, I've not been able to get the string into the Department column for the new item.

     

    Can you tell me how I would do that?

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Power Automate Update list item with User's Department

    HI @rpawliko,

    Add a compose and apply your extracted string to it, in your Create item action, select this Compose from dynamic content.

    Run the flow, check if this Compose display the department correctly.

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 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard