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 / Capturing Information ...
Power Apps
Answered

Capturing Information From a Container

(0) ShareShare
ReportReport
Posted on by 71

So I have been working on this app, and want to know if there is a way to capture the data in side of a container instead of having to list each item inside of the container. So in the code below this is for my submit button, it gathers all of the data in the boxes and submits it to an email. But I am going to have a huge list of about 30 items in that container on the right-hand side of the screen (see picture below), so instead of having to listout each one of those 30 checkboxes that will be there, can I just put them all inside of the container, and just select the container and the items inside of the container that are checked and pull that information into an email. The idea here is to trim up the code instead of having 30 additional entries in the submit button code.

 

Office365Outlook.SendEmailV2(
HS_txtinp_Email.Text,
"IT Requirements Request",
HS_txtlbl_EmployeeInformation &
"<br></br>" &
"Employee Name: " & HS_txtinp_EmployeeName.Text &
"<br>Department: " & HS_txtinp_Department.Text &
"<br>Job Title: " & HS_txtinp_JobTitle.Text &
"<br>Start Date: " & HS_dp_StartDate &
"<br>Cost Center: " & HS_dd_CostCenter.Selected.Value &
"<br>Location: " & HS_dd_Location.Selected.Value &
"<br></br>" &
HS_txtlbl_Equipment &
"<br>" &
"<br>No Equipment Needed: " & HS_cb_NoEquipmentNeeded &
"<br>Headset: " & HS_dd_Headset.Selected.Value &
"<br>Desktop/Laptop: " & HS_dd_WorkstationSetup.Selected.Value &
"<br>VPN Access: " & HS_dd_VPNAccess.Selected.Value &
"<br>Monitors: " & HS_dd_Monitors.Selected.Value &
"<br>Phone: " & HS_dd_Phone.Selected.Value &
"<br>Applications/Licenses: "

 

JaredB_0-1669911784064.png

 

Categories:
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @JaredB 

     

    Complete understand your situation but in my experience, since you have a lot of fields, that would basically mean that you'll need to distinctly identify them as what you are doing now.  When you put controls within that container, the only thing that happened there is you have one container to move them around. You can point to the container as a Parent of the controls inside it but, you cannot point directly to these controls as a child of the container.

     

    Even in non-low-code dev, your way of making the mail would still be the same.

     

    Just one thought, you might want to move that body content to a HtmlText control so that you can visualize the email in advance and then use that HtmlText.HtmlText value as the body of the email. You can just hide this control and make it visible as reference for your troubleshooting later.

     

    cha_cha_0-1670073651606.png

     


      ✔️
    Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

     

     

     

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard