Hi @Anonymous ,
Do you only want the UpdateIf function to update the first record which match the filter condition within your UpdateIf formula?
If you want the UpdateIf function to only update the first record which match the filter condition within your UpdateIf formula, I afraid that there is no way to achieve your needs in PowerApps currently.
The UpdateIf function would update all records which match the specific filter condition in a data source. More details about the UpdateIf function, please check the following article:
UpdateIf function
If you want to update the first record which match the filter condition you specified, I think the combination of Patch function and LookUp function could achieve your needs. Please consider take a try with the following formula:
Patch(
'YourDataSource',
LookUp('YourDataSource', PrimaryColumn = "A specific value"), /* <-- Find the first record which match the filter condition */
{
Column1: "xxx",
Column2: "xxx",
Column3: "xxx",
...
}
)
Or
Patch(
'YourDataSource',
First(Filter('YourDataSource', PrimaryColumn = "A specific value")), /* <-- Find the first record which match the filter condition */
{
Column1: "xxx",
Column2: "xxx",
Column3: "xxx",
...
}
)
Please take a try with above solution, check if the issue is solved.
More details about the Patch function and LookUp function in PowerApps, please check the following article:
Patch function
LookUp function
Best regards,