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 / Convert a formula with...
Power Apps
Answered

Convert a formula with hard-coded values into values retrieved from SharePoint

(0) ShareShare
ReportReport
Posted on by 3,514

We have the following Collection which contain a Type =Admin and Table of Email addresses inside Power App formula, with email addresses been hard coded, as follow:-

ClearCollect(
 varUserForContracts,
 {
 Type: "Admin",
 Emails: Table(
 {UEmail: "app.admin@.org"},
 {UEmail: "*****.org"},
 {UEmail: ".org"},
 {UEmail: "*****.org"},
 {UEmail: "app.admin@.org"},
 {UEmail: "*****.org"},
 {UEmail: ".org"},
 {UEmail: "*****.org"},
 )
 }
);

now instead of hard-coding the email addresses, i created a SharePoint list which include all the above emails:-

 

image.png

so how i can build the same Collection (with Type, email Table) but to populate the table values from the values inside the SharePoint list?

Thanks

Categories:
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @johnjohn123, try this:

    ClearCollect(
     varUserForContracts,
     {
     Type: "Admin",
     Emails: ShowColumns(SharePointlistName,"EmailColumnName")
     }
    );

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

     

  • johnjohn123 Profile Picture
    3,514 on at

    @AhmedSalih  but as you can see the column name inside the SharePoint list is "Title", while i want it to be "UEmail" inside the collection , is this possible?

  • Verified answer
    AhmedSalih Profile Picture
    6,680 Moderator on at

    @johnjohn123, try this:

    ClearCollect(
     varUserForContracts,
     {
     Type: "Admin",
     Emails: RenameColumns(ShowColumns(SharePointlistName,"EmailColumnName"),"Title","Uemail")
     }
    );

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • johnjohn123 Profile Picture
    3,514 on at

    @AhmedSalih thanks worked

     

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @johnjohn123, thank you for letting me know. I will go ahead and accept the solution then. 

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard