cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Post Prodigy
Post Prodigy

My email sending doesn't work properly

Hello guys, I have a flow with sending emails through selected user...

 

My flow:

 

part1flow.pngpart2flow.png

The jscon code:

 

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "fullName": {
                "type": "string"
            },
            "userEmail": {
                "type": "string"
            },
            "date": {
                "type": "string"
            },
            "Text": {
                "type": "string"
            }
        }
    }
}

 

 

 

And I have a gallery to the user selected the user(s) he want:

 

 

gallery and select date and put text.png

 

In the gallery I have a date field and a text field for the user to select and type and send, after that he will reset the fields.


The code in the checkbox:

OnCheck:

oncheck.png

OnUncheck:onucheck.png

But, when I did the test the emails I receive are not what I select in the powerapps, it sends the old ones several times, as if it were accumulating ....

 

The last test was this:

 

emails.png

 

What did I do wrong?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Alex_10 

I change my code on flow and worked, thanks for the response, man! 

View solution in original post

3 REPLIES 3
Alex_10
Super User
Super User

what if you try:

OnUncheck:
    Remove(CollectData, LookUp(CollectData, userID = ThisItemID));

 

email button.OnSelect:
    Your code for sending emails here first;
    Clear(CollectData);

Hi @Alex_10 

I change my code on flow and worked, thanks for the response, man! 

View solution in original post

For users who are going to use this flow, just wait a while for the powerapps to process the collection and send the email, and when removing the collection too, just hope it works correctly.

 

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

Tip: put a delay on powerapps or flow.

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,378)