Hello everyone,
I have several SharePoint lists. I want to build a menu that allows you to replace old names with new names. By clicking on a button, the Sharpepoint lists should first be filtered by the old name and then the old name should be replaced by the new one.
The following is my current code. This also works, but only for 1 element at a time. But I would like the name substitution to be carried out directly on all associated lines by clicking on the button. Unfortunately I can't get it to work...
TextInput3 corresponds to the old name, TextInput4 to the new name, the variable BewerteteAbteilung corresponds to the column in the sharepoint lists that contains the name.
If(
!IsBlank(TextInput4.Text) &&
!IsBlank(LookUp('Sharepointlist1'; BewerteteAbteilung = TextInput3.Text));
Patch(
'Sharepointlist1';
LookUp('Sharepointlist1'; BewerteteAbteilung = TextInput3.Text);
{ BewerteteAbteilung: TextInput4.Text }
);;
Patch(
'Sharepointlist2';
LookUp('Sharepointlist2'; BewerteteAbteilung = TextInput3.Text);
{ BewerteteAbteilung: TextInput4.Text }
);;
Patch(
'Sharepointlist3';
LookUp('Sharepointlist3'; BewerteteAbteilung = TextInput3.Text);
{ BewerteteAbteilung: TextInput4.Text }
);;
Set(Var_Haken;true);
Set(Var_Kreuz;true)
);;
Reset(TextInput3);;
Reset(TextInput4)
I use the German version of PowerApps. That's why , here are ;
Thanks in advance