Hi @aboodhamwi ,
Could you please share a bit more about your issue?
Could you please show more details about your Patch formula?
Based on the issue that you mentioned, I have made a test, and the issue is confirmed on my side. The Quote Number (Quote ID) field is a Required field in Quotes Entity, when we generate an app based on the Quotes Entity, it would be recognized a Required/Mandatory field in PowerApps app, which we must provide a value for it.
I afraid that the Quote ID field (Auto Number type) in Quotes Entity could not work as expected within PowerApps app currently. If you want to get further help in this issue, please consider submit an assisted support ticket through the following link:
https://powerapps.microsoft.com/en-us/support/pro
As an alternative solution, you could consider generate a random string value for the Quote ID filed within your Patch formula as below:
Set the OnSelect property of the "Submit" button as below:
Patch(
Quotes,
Defaults(Quotes),
{
Name: "PowerApps Portal Ticket",
'Quote ID': "QUO-" & Mid("0123456789", 1 + RoundDown(Rand() * 10, 0), 1) &
Mid("0123456789", 1 + RoundDown(Rand() * 10, 0), 1) &
Mid("0123456789", 1 + RoundDown(Rand() * 10, 0), 1) &
Mid("0123456789", 1 + RoundDown(Rand() * 10, 0), 1) &
Mid("0123456789", 1 + RoundDown(Rand() * 10, 0), 1) &
"-" &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1) &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1) &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1) &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1) &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1) &
Mid("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1 + RoundDown(Rand() * 36, 0), 1)
}
)
More details about generating a random unique key in PowerApps, please check the response within the following thread:
https://powerusers.microsoft.com/t5/General-Discussion/Manually-Generating-UniqueId-Key-Values-or-how-is-it-generated/td-p/29522
Best regards,