web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Drop down list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, everyone,

 

I need your help to solve a problem that I'm facing. I'm creating an app like keep from google to organize some tasks. In that app, I have two tables: the first one is responsible for storing the tasks, and the second one has just some items for a drop down list that classifies the tasks (ongoing, late, finished, and not started). 

The problem is: when I want to create a new task, I'm not being able to classify that task. As soon as I choose an option from the drop down list, it creates a new entry in my table. I'll attach some images to exemplify my issue.

The image with the red circle is what happens when I choose an option from the drop down list. It creates a new entry instead of classifying my new task.

This is the code I created for my drop down list (OnChange):

 

If(
 LookUp(
 Tarefas;
 ThisItem.ID = Tarefas[@ID];
 "OK"
 ) = "OK";
 Patch(
 Tarefas;
 LookUp(
 Tarefas;
 ThisItem.ID = Tarefas[@ID]
 );
 {StatusCol: ListaStatus.SelectedText.Value}
 );
 Patch(
 Tarefas;
 Defaults(
 Tarefas
 );
 {StatusCol: ListaStatus.SelectedText.Value}
 )
)

 

The first Patch is responsible for updating the tasks already created, and the second one would be responsible for new tasks.

ListaStatus is the drop down list and the IDs are generated automatically.

image.png
image.png
image.png
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard