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 / Sending email with inf...
Power Apps
Unanswered

Sending email with info that is only filled out

(0) ShareShare
ReportReport
Posted on by 93

Hi,

 

I have built an app where one of the pages helps us keep track of what we are ordering as there are different locations utilising the same document.

 

My question is there a way if i don't type a number in a box the data doesnt get sent to the company. below is the code i have used for the email in principle it is great (but if there is a way to remove what doesnt need to be there so the email being sent is only what we need to order would love that.

 

Thanks

Screenshot 2023-09-26 at 2.01.13 pm.png
Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @AliciaDG , Please correct me if I am wrong. Based on your explanation, you want to have your code dynamic enough so that whatever items are ordered, only that information should be available in body of email and any of the item which is not ordered then that information should not be available in the email body.  

    If this is what you are looking then use below code of each items:

    ANB_0-1695702558466.png

    If(!IsBlank(Datacardvalue80.Text), "<b> Prayer Request Cards quantity: </b>" & " " & Datacardvalue80.Text & " " & "packs of 250 units" & "<br/>");

    If this is not what you are looking then please elaborate your requirement.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi,

     

    So generically, as I don't know exactly what content you want to remove, the answer would be yes. Implementing it though requires knowledge of your app, how data is generated and your data.

     

    What you could do is create a collection and store all of the lines you DO want in there.

    Then only output those lines not the ones you dont want

     

    Again you have to put some thought into, the design isn't a "standard pattern of do this".

     

    I hope this helps.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard