Hi guys,
So i have a button that needs to patch to a SharePoint List, I need it to first check if the list already has that item in it, then check if the value of a checkbox is True, then after this I need it to patch a Name an a Date depending on the jobtitle of the user. If the jobtitle equals "Praktikant" it needs to just patch this, however, if it is not, then I need it to just patch their name and the date? I have tried the formula as seen under the text, however, in this case it patches both. Anyone got any ideas on how to make sure that it patches "Praktikant" if this is the jobtitle, but then their actual name if it is not 🙂
If(
And(
IsBlank(
LookUp(
Onsdag;
Medarbejdernr = Medanr.Text;
false
)
);
'Onsdag()'.Value = true
);
'Office365-brugere'.MyProfile().JobTitle = Label6.Text;
Set(
gBlItemPatched;
Patch(
Onsdag;
Defaults(Onsdag);
{
Title: Label6.Text;
Dato: Dato1.Text
}
)
);
Set(
gBlItemPatched;
Patch(
Onsdag;
Defaults(Onsdag);
{
Title: User().FullName;
Medarbejdernr: Medanr.Text;
Dato: Dato1.Text
}
)
)
)
Thanks In advance.
- Tobi