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 / Calling Sharepoint 'Us...
Power Automate
Answered

Calling Sharepoint 'UserId' column using PowerAutomate

(0) ShareShare
ReportReport
Posted on by 776

Hi Team,

 

Please guide me how to auto populate 'UserID' column in SharePoint.

 

Currently, there is a legacy sharepoint workflow which is populate the 'UserID' Column.

Little background on working on this column. When a new entry is added/saved in the list - the column 'UserID' displays a number (example 123) and this number is assigned to the user who created the item. Now if the user creates a second item in the list the same number allotted to him will be displayed under 'UserID' column. Meaning stamping only happens when a new entry is made

For repeated or multiple entries the number allotted previously will be displayed in the column.

How can we use PowerAutomate to replace the old working on workflow
Logic that came to me was

Step 1 - When an item is created in SharePoint

Step 2 - Check if the number is already allotted

Step 3 - If the number is not allotted then allot a new number in continuation of the pervious pattern which the legacy workflow was doing.

Step 4 - terminate the flow as 'success'






 

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @AshishJaiswal Please find my flow:

     

    jinivthakkar_0-1612429941669.png

    jinivthakkar_1-1612430102649.png

    jinivthakkar_2-1612430156386.png

     

    jinivthakkar_3-1612430266731.png

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • AshishJaiswal Profile Picture
    776 on at

    @jinivthakkar 

     

    I don't this flow checking the existing ID.

     

    Because the ID is present no need to assign a new one

     

    If not present then assign new number - with continuation of pervious pattern

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @AshishJaiswal,

    Here is my proposal:

    gabibalaban_0-1612432051676.png

    Hope it helps !

  • AshishJaiswal Profile Picture
    776 on at

    @gabibalaban 
    This flow should add ID with continuation

     

    + 1 to pervious number 

  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @AshishJaiswal ,

    Nothing special in this task:

    Before update item on the Yes branch of the if claus, use a Sharepoint - get items action (let's call it - get max usedID)  to get items top 1 order by userID descending and then on userID column of update item action:

    add(body('get_max_userID')['value'][0]['userID'],1)

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
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard