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 / Add an option to a dro...
Power Apps
Answered

Add an option to a drop-down when datasource is Salesforce

(0) ShareShare
ReportReport
Posted on by 27

I am trying to add a "Select ----" default option to the top of a drop-down. 

I found this great dynamic example that works for sharepoint.

with (lclchoices :choices(powerappssamples.choicecolumn)),

  forAll(sequence(countrows(lclchoices)+1), {value: if(value=1, "Select ----", last(firstn(lclchoices, value -1)).value)

)

 

This would replace parent.allowedvalues in the items property. note: the first "value" is the record column called "value:" and the last is the return value from the choices and the 2 middle values are part of the sequence statement.

 

I am wondering if this would work for the Salesforce Datasource. Is choices available to get the picklist values? Also wondering what it expects for the record column. I tried all sorts of options and cannot seem to stumble on the right answer.

 

FYI.....newbie here......just finishing my first app and this is the last loose end.

Categories:
I have the same question (0)
  • Verified answer
    b00buu Profile Picture
    27 on at

    I found a solution that is easier on another post.

    Set the allow empty selection property to true and the default to blank(). This meets my need.

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @b00buu 

    Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues.

    Please accept your reply as an answer to mark this post by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Best Regards.

    Lily

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 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard