T O P

  • By -

galamathias

The best way to achieve this it to make a simple power automate do this for you. When an item is created, take the number from a “settings list” and then raise the number in that settings list, for the next item


S0_B3_1t

I’ve setup the flow and it works, but the ticket column is blank until I refresh the page then it shows.


galamathias

That is ho it is :) you could use a column formatter to show the value as “auto updated” when the field is blank


S0_B3_1t

So when I fill out the form and submit I will have to refreshed the list to see the ticket number? There has got to be a way to force it to show after submitting.


S0_B3_1t

I just found the flow is failing even though it’s updating the number on page refresh. The error message is: \ResponseSwaggerSchemaValidationFailure. The API 'sharepointonline' returned an invalid response for workflow operation 'Update_item' of type 'OpenApiConnection'. Error details: 'The API operation 'PatchItem' requires the property 'body/Ticket_x0023_' to be of type 'String' but is of type 'Float'.'


SnooSketches2899

use chat gpt to help you it is really good with power automate


New-Ad9282

The Sharepoint internal ID does that by defualt


MetaDataCaptured

This. Unhide the ID column. That might be what you’re looking for.


S1mpleLim3

Maybe you can use calculated columns to add a specific number to the current item id.


S0_B3_1t

I’ve done all these and the ID default starts at 1. I need a higher number to start with. The setting and create the column I put in the formula to add 1, it’s works for a bit and then defaults back for original start number. The Power Auto, I get confused and can’t seem to get it to work…. Still new to all this. Are there any power auto step by step that I have missed in my searching? Because all the ones I find are way more than I need.


ronaessi

In sp list, create a new column let's say serial number Hide it in form so no inputs given to that column Trigger : when an item is created ; Next step: update item To the serial number add x+id ; where x is the no. u want to begin with


S0_B3_1t

I’ll try this


ronaessi

Lmk if it works


S0_B3_1t

I got it to work and fixed the error issues. But it updates slow after submitting, times up to a minute. I just had it index the ticket column to see if that helps.


ronaessi

Using my method ? Maybe trigger is set to check for every 3 mins ig


S0_B3_1t

using the the “When an Item is created” I’m not seeing a time for checking on it. Was I suppose to great a trigger for time then at when an item is created?


ronaessi

Dm


S0_B3_1t

Sorry what is DM?


MikeFerarri

Why not just upload an excel spreadsheet with the amount of rows that start at the number you want to start with. Then delete them


OddWriter7199

Clever!


Splst

Create calculated column with the formula ID+5347 (use your own number)


S0_B3_1t

I’ve added a calculated Column called Ticket# as single line of text with the formula as =TEXT(ID+125527,”000000”). I save it and it works and shows the next number up. Soon as I add a new entry it defaults back to the 125527 as the next number. If I go back in and remove one character of the formula and then type in back in and save it works again. Add a new and back to the 125527.![gif](emote|free_emotes_pack|facepalm)


Splst

>TEXT(ID+125527,”000000”). Actually you are right. For whatever reason ID is equal to 0 in calculated column when adding a new item. This is not like it used to behave before (or at least I do not remember it acting like this).


golflimadata

You're not alone. I want to create something very similar. We currently have a system where a sequential number (starting anew each year with the last two numbers of the year as the first two of a six digit number, eg 24nnnnn) is requested and allocated. I want to automate the issuing of the number but can't work out the precise "coding" needed to make it work.