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 / Display items from one...
Power Apps
Answered

Display items from one list and send them to another (avoid hard coding)

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have this issue where I am looking to show results from a column in a SharePoint list. 

 

This is the Items property of AdminTaskCategoryDDL: 

Sort
(
 Table
 (
 {Item: " "},
 {Item: "Installation (HW/SW)"},
 {Item: "Configure/Construct"},
 {Item: "Design/Discovery"},
 {Item: "Data Conversion"},
 {Item: "Testing/Validation"},
 {Item: "Training"}
 ),
 Item
)

 These are specifically pulling from a list called 'Project Time Tracking'. I want the AdminTaskCategoryDDL to display items from 'Task Category' list. The form, which houses AdminTaskCategoryDDL, is meant to submit the choices to 'Project Time Tracking' to populate its columns. How do I achieve all this without hard cording the items like you see in the table? 

 

Many thanks. 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @levoncosta,

    Let me confirm with you:

    1). You want to popualte the AdminTaskCategoryDDL with another list named 'Task Category'

    2). Submit the choices to your data source, 'Project Time Tracking'

     

    Could you please tell me that if the column where you saves the choices in  'Project Time Tracking' is a Choice or a LookUp or a Text type?

    If the column from 'Task Category' is a Text type, I think you could directly make the column where you saves the choices in  'Project Time Tracking' a LookUp type. Therefore, you could set the Items property of AdminTaskCategoryDDL with Choices('Project Time Tracking'.Column), it will display all the choices from the column in 'Task Category'.

     

    Here is the detailed blog:

    Create list relationships by using lookup columns - Microsoft Support

  • levoncosta Profile Picture
    on at

    @v-qiaqi-msft 
    Yes, the first 2 points are correct.

    The Task Category column of the Project Time Tracking list is a single line of text column. 
    The TaskCategoryName column of the Task Category list is also a single line of text column.

     

    I think when you say "Therefore, you could set the Items property of AdminTaskCategoryDDL with Choices('Project Time Tracking'.Column), it will display all the choices from the column in 'Task Category'", what you meant to say was grab the choices of the TaskCategoryName column of the Task Category list? 

     

    So, the Items property for AdminTaskCategoryDDL would be:

     

    Choices('Task Category'.TaskCategoryName)

     

    Keep in mind, the DataSource property of this InputScreenAdminForm is: 

    [@'Project Time Tracking']

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @levoncosta,

    There is a necessary prerequisite before the "Therefore", which is that you must make Task Category column of the Project Time Tracking list a LookUp type column. So I provided a detailed blog for reference to how you create a LookUp column in SharePoint list.

     

    1). Make the Task Category a LookUp type in column settings, then it will require you to select which list you want to retrieve the choices from, where you should select the Task Category list, and then you select the TaskCategoryName column from the columns dropdown list.

    2). Save the settings and you could find that you ccould select choices from the Task Category column of the Project Time Tracking

     

    This is the most efficient way to achieve this, otherwise we need to do a lot of work to write expressions to capture choices from Task Category list and update it.

    Anyway, if this is not convenient for you, just set the Items property of AdminTaskCategoryDDL: 

    Distinct(TaskCategoryList,TaskCategoryName)

     

    The following is optional.

     

    Set the DefaultSelectedItems property of the Combo Box as below:

    Filter(Distinct(TaskCategoryList,TaskCategoryName),Result=ThisItem.TaskCategory)

    Set the Update of the data card:

    AdminTaskCategoryDDL.Selected.Result

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard