Non working formula:
UpdateIf(varCandidates,ID in Split(First(SortByColumns('Staffing List'),"Title",Ascending).CandidateIDs,"-"),{ProjectLinked:1}))
I am trying to retrieve the first record of a list ('Staffing List') sorted by Title then update varCandidates.ProjectLinked:1 if varCandidates.ID in 'Staffing List'.CandidateIDs
Example of 'Staffing List'.CandidateIDs is "10-43-40-"
Solved! Go to Solution.
Hi @sjcitpro ,
Based on the formula that you mentioned, I think there is something wrong with the SortByColumns() function in your UpdateIf() function.
I have made a test on my side, please take a try to modify your formula as below:
UpdateIf(
varCandidates,
ID in Split(First(SortByColumns('Staffing List',"Title", Ascending)).CandidateIDs, "-"),
{ProjectLinked:1}
)
Or
UpdateIf( varCandidates, ID in Split(First(SortByColumns('Staffing List',"Title", Ascending)).CandidateIDs, "-").Result, {ProjectLinked:1} )
Please take a try with above solution, then check if the issue is solved.
More details about the SortByColumns function in PowerApps, please check the following article:
Best regards,
Hi @sjcitpro
It looks like you have a closing bracket in the wrong place for you SortByColumns function. Try:
UpdateIf(varCandidates,ID in Split(First(SortByColumns('Staffing List',"Title",Ascending)).CandidateIDs,"-"),{ProjectLinked:1})
Cheers Hadyn
Hi @sjcitpro ,
Based on the formula that you mentioned, I think there is something wrong with the SortByColumns() function in your UpdateIf() function.
I have made a test on my side, please take a try to modify your formula as below:
UpdateIf(
varCandidates,
ID in Split(First(SortByColumns('Staffing List',"Title", Ascending)).CandidateIDs, "-"),
{ProjectLinked:1}
)
Or
UpdateIf( varCandidates, ID in Split(First(SortByColumns('Staffing List',"Title", Ascending)).CandidateIDs, "-").Result, {ProjectLinked:1} )
Please take a try with above solution, then check if the issue is solved.
More details about the SortByColumns function in PowerApps, please check the following article:
Best regards,
User | Count |
---|---|
153 | |
93 | |
84 | |
77 | |
58 |
User | Count |
---|---|
197 | |
176 | |
106 | |
96 | |
89 |