I need putting some triggers in Microsoft lists through Power automate

Muhammad Kamran 1 Reputation point
2023-02-02T10:51:45.5366667+00:00

Hi Team,

I created a list in Microsoft List and need to add two triggers to one of the column through power automate. One trigger would be compare the value the input with another column value and then change the color of another cell. For instance if we have a value of 500 in a cell, and if someone enters a new entry, then automate should compare the input with 500 and if it is less than 500, it should change the color of entry to green otherwise red

The other condition would be to compare two cell and if the condition is true, it should send a custom email to the sender whose email is already saved on another column

Thanks

Kamran

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 24,951 Reputation points Moderator
    2023-02-03T08:40:31.5733333+00:00

    Hi @Muhammad Kamran ,

    To your first requirement, I think it cannot be achieved using Power Automate flow but using JSON column formatting.

    For example:

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "txtContent": "@currentField",
      "style": {
        "font-size": "30px",
        "color": "=if([$n1]<[$n2], 'green', 'red')"
      }
    }
    

    User's image

    As to the second requirement, you can design an automated cloud flow using "condition" control and "Send an email(V2)" action like the below example. The trigger of the flow should be "When an item is created".

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.