Canvas Apps
How To Send Email Based On Dropdown Selection

How To Send Email Based On Dropdown Selection

Method 1:

On Change of dropdown get the current value using:

Eg: I’m getting value from status dropdown so I named it has varStatus.

Set(varStatus,Self.Selected.Value);

Then On Save button do following action:

Here “SendEmailBasedOnStatus” is a Power Automate.

SendEmailBasedOnStatus.Run(varStatus,"");

Check below video for power automate configuration.

Method 2:

Get the dropdown value and compare using switch condition on Save click.

If anyone condition matches the switch value, It will set the respective content into variable (i.e. BodyMessage).

Then trigger the Flow. Check below video for more detail.

Switch(
    varStatus,
    "New",
    Set(
        BodyMessage,
        "New Request Submitted"
    );
    SendEmailBasedOnStatus.Run("",BodyMessage);
    ,
    "Cancel",
    Set(
        BodyMessage,
        "Your Form Has been Canceled"
    );
    SendEmailBasedOnStatus.Run("",BodyMessage);
)
YouTube player
0

Leave a Reply

%d bloggers like this: