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 Platform Community / Forums / Power Apps / Repeat Dropdown on Gal...
Power Apps
Unanswered

Repeat Dropdown on Gallery not working with Dataverse

(0) ShareShare
ReportReport
Posted on by 8

Hi All,
I am working on a simple app to collect contact information, app is working fine with SP connection but does not work with Dataverse.

 

1) With Sharepoint it is as follows:

- Button 'On Select' :

ClearColelct(updates,
{Name: Blank(),
TypeContact: Blank(),
ID:1 });
Set(varContacts, "add")

Gallery Items:
If (varContacts = "add", updates, Filter('Contact Users', TypeContact = "Contact"))

 Dropdown on the gallery:

 

Items:DropdownSample

On Change:
If(varContatcs="Add",
With ({wLastID: Last(Updates).ID},
If (varContacts="Add" And ThisItem.ID = wLastID,
Collect(updates, {ID: wLastID+1}
)))

 

Works like a charm, everytime I change dropdown, galerry repeats with new line, but when I switch to dataverse it does not work, I cannot refer to ThisItem.ID  I only get "IsSelected" as an option.

I do not understand the issue, is it a DV thing that it cannot show empty rows? Or am I missing something?

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @protonme ,

     

    In SharePoint, it's possible to refer to an item's ID directly as it's a standard field for all lists. However, in Dataverse, the unique identifier for a record is typically referred to as the primary key and it's not necessarily named "ID". The primary key field could have a different name depending on the table in Dataverse.

     

    If you want to continue using a similar way as SharePoint, add an Autonumber type column named ID  in your dataverse.

    cha_cha_0-1685361216523.png

     

  • protonme Profile Picture
    8 on at

    Hi @cha_cha ,

    Thanks for the reply. I added the column but still do not get "ID" as a suggestion for ThisItems ;/ Any idea what step I may be missing? 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard