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 / Auto-generate and form...
Power Automate
Unanswered

Auto-generate and format ID and post to MS Lists' static "Title" column - Flow keeps timing out

(0) ShareShare
ReportReport
Posted on by
First...I'm new and this may be a simple fix and I just don't know what I don't know. Or, not. I'm trying to create an automated cloud flow that creates and formats a unique id and posts it to the static "title" column (column1) in MS Lists when a new item is created. Flow checker says the flow is ready to go but keeps timing out when I test it. Hoping someone can see what I'm doing wrong...it could be the query, data type, etc. I know just enough to get myself into trouble and not enough to get out of it. Sigh...the goal would be to have the unique id populate in the Title column and increase by one with a concatenated prefix, ie. Consult-0001, Consult-0002, etc. Any help is appreciated. Thanks in advance. 
 
MS List Columns settings:
Column1(unable to delete or change data type.
Title Date Name
Type=Single Line of Text
Enforce unique values=yes
Formatting="Consult-"0000
Type=Date and Time Type=Single Line of Text

Flow Steps
  1. Trigger: When an item is created
  2. Initialize Variable:
    • Name: UniqueID
    • Type: String
  3. Get Items:
    • Order By: Created desc
    • Top Count: 1
  4. Apply to Each (loop):
    • Select an output from previous steps: body/value
      • Set Variable:
        • Name: UniqueID
        • Value: concat('Consult-', padLeft(string(add(int(items('Apply_to_each')?['ID']), 1)), 4, '0'))
  5. For Each (loop):
    • Select an output from previous steps: body/value
      • Update Item:
        • Id: ID (from the trigger)
        • Title: UniqueID (from the variable)
Categories:
I have the same question (0)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 261 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 185

#3
Haque Profile Picture

Haque 168

Last 30 days Overall leaderboard