I created a table, PRA_Score where the primary name column is an autonumber.
Now I want to use Power Automate to automatically create PRA_Score records when an action happens. But I can't figure out what to put in the primary name column since it is insisting I must put something there.
I suppose I could look up the last PRA_Score record, parse the name (score_####), increment the number and concatenate a new name for the new record. But that feels really kludgy. Is there a better way?
Good to know. Thanks!
The primary name field can be set to optional:
This is the recommended approach since it is the intended behavior. Otherwise, all applications, flows and services that attempt to create a record will need to account for this.
I don't believe the primary name field can be changed to optional. That was the issue. Using the null() expression solved the problem.
I typically change AutoNumber fields to not-required since the system will populate it for you. Also, ensure that the field is read-only on any forms so that it can't be changed.
Hi @halifaxious,
You can pass the Null expression to get past the required validation in your Flow. The platform will take care of populating the name with the generated AutoNumber on the server side. See my working example below:
---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1