cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hankycheng0621
Helper I
Helper I

New insert SharePoint ID with fixed Text on the front

Hi All

 

I want to new insert SharePoint ID with fixed Text on the front as below code, but fail and only show "ABC" but haven't sharepoint ID. Can you tell me how to do this? Thanks

 

If(
NewRecordForms1.Mode = FormMode.New,
Text("ABC"),
Last(SiteLog).ID + 1, // Generate a ID value when you add a new record using the app
ThisItem.TicketNumber
)

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @hankycheng0621 ,

Something like this should do it

If(
   NewRecordForms1.Mode = FormMode.New,
   "ABC" & Last(SiteLog).ID + 1,
   ThisItem.TicketNumber
)

 

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.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @hankycheng0621 ,

Something like this should do it

If(
   NewRecordForms1.Mode = FormMode.New,
   "ABC" & Last(SiteLog).ID + 1,
   ThisItem.TicketNumber
)

 

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.

Visit my blog Practical Power Apps

hankycheng0621
Helper I
Helper I

It's sovled, thanks for your help

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,461)