Notifications
Announcements
I want to assign a prefix to a form when they select a specific lookup option. eg- report is for School A so A will be a prefix, if its School B, B will be the prefix. The prefix can be stored in the same table with the School type. Any solutions will be helpful
Hi @Sean9,
You easily achieve this with formula columns. So the expression would be something like this. Note: replace "Primary Contact" with the School lookup and navigate to the desired type, and replace "Account Name" with the remaining part.
Here's more info: https://learn.microsoft.com/power-apps/maker/data-platform/formula-columns
Hope this helps!
sorry, i meant prefix for the autonumber so users would select school A and then it would be A-1000 as the autonumber
I wish this was possible but the OOTB autonumber doesn't support dynamic prefixes. You would need a custom auto-numbering system created where you could define the prefix per choice value. I've done it in the past, the sequential numbering is tricky since you have to lock the table during the assignment of the sequential number, but if you add a random set of characters it's a bit easier.
Hi @Sean9 ,
I would do the following, hopefully it makes sense...
Hi @dpoggemann , could i do this via a concat formula where i call a table and its column where the prefix is stored relating to the lookup and then put the autonumber in the currect table next to it?
@Sean9, cheers for clarifying. You can still achieve with formula columns, but you'll need to create an autonumber column with no prefix then in your formula column reference the value of that autonumber column, and done!
hi @EricRegnier , thank you for replying, so i have been trying this like this:
so below calls the prefix and then the ID. The lookup column is called name in the table TAuditType. This formula keeps showing errors. Any idead?
If you hover over the error, what does it say? I tried on the account table and looks good from my side. Note: "Primary Contact" is a contact lookup and "Full Name" is a text column on the contact.
Thank you @EricRegnier just solved it i was calling the whole table in the formula instead of the lookup and then the specific column for the prefix 🙂
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268