Patch(
Obrazy_obecnosc,
LookUp(Obrazy_obecnosc,Last(Split('Imię i nazwisko'.Claims,"|")).Result = User().Email & Created = Today()),
{
Nazwa_zadania:Zadanie_nazwa.Text,Opis_zadania:Zadanie_opis.Text
}
)
This function is always creating new record it cannot match LookUp.
And this function does not create any record at all or fill the existing record:
Patch(
Obrazy_obecnosc,
LookUp(Obrazy_obecnosc,Last(Split('Imię i nazwisko'.Claims,"|")).Result = User().Email),
{
Nazwa_zadania:Zadanie_nazwa.Text,Opis_zadania:Zadanie_opis.Text
}
)
Obrazy_obecnosc is a Sharepoint List.
Imię i Nazwisko is name and surname field.
Solved! Go to Solution.
Hi @Elitezone ,
Glad to solve your problem.
If you have a new question, I suggest you create a new post and describe your new problem in detail.
I will be happy to continue to help you solve the problem.
Best Regards,
Wearsky
Hi @Elitezone ,
According to your description, let me explain why you encountered this problem.
You can try the following code:
If(
!IsBlank(
LookUp(
Obrazy_obecnosc,
Last(
Split(
'Imię i nazwisko'.Claims,
"|"
)
).Result = Lower(User().Email) && DateValue(Text(Created)) = Today()
)
),
Patch(
Obrazy_obecnosc,
LookUp(
Obrazy_obecnosc,
Last(
Split(
'Imię i nazwisko'.Claims,
"|"
)
).Result = Lower(User().Email) && DateValue(Text(Created)) = Today()
),
{
Nazwa_zadania: Zadanie_nazwa.Text,
Opis_zadania: Zadanie_opis.Text
}
)
)
Best Regards,
Wearsky
It works very good. Do you have idea how to make it to save more than one record?
Currently it only saves one record (last one) and If I change input it replace it.
Hi @Elitezone ,
Glad to solve your problem.
If you have a new question, I suggest you create a new post and describe your new problem in detail.
I will be happy to continue to help you solve the problem.
Best Regards,
Wearsky
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
192 | |
45 | |
45 | |
38 | |
36 |
User | Count |
---|---|
261 | |
83 | |
81 | |
69 | |
69 |