
Hi
I would like to filter a sharepoint list and afterward change the same variable for all left on the list to the same value...
Earlier I have made this code - and it works...
ForAll(
Filter(Table_Tasks;SagNummer="5550 - 2";";"&"8"&";" in Predecessor);
Patch(Table_Tasks; ThisRecord;
{Deadline: Today()}
))
Now I would like to remove the second part of the filtering, but now it doesn't work anylonger... Why...?
ForAll(
Filter(Table_Tasks;SagNummer="5550 - 2");
Patch(Table_Tasks; ThisRecord;
{Deadline: Today()}
))
Hi @jlke-as ,
I have a partial answer in that it should not have worked in the first place as patching a data source with itself generally does not work and produces an error. However try this
With(
{
_Data:
Filter(
Table_Tasks;
SagNummer = "5550 - 2"
)
};
Patch(
Table_Tasks;
ForAll(
_Data As _Items;
{
ID: _Items.ID;
Deadline: Today()
}
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps