How to Change Trigger in Power Automate [3 Different ways]

Sometimes, you might need to change the trigger of a flow in Power Automate. In this tutorial, I have explained how to change trigger in Power Automate using different ways.

Suppose there is a flow and the trigger is “When an item is created or modified,” and later, you want to change it to “When an item is created”. Here, I will show you different ways to do it.

When we are developing a flow, we may select the wrong trigger action, or later, we realize that we need to change the trigger action. We may lose the following actions presented in the flow because of the false trigger action.

To overcome this, we will see how we can change the trigger type without losing the following steps that are presented in the flow:

How to Change Trigger in Power Automate

Let us see how to change the trigger in Power Automate.

Example-1: (Change Trigger Directly)

Here, I have created an instant cloud flow with two text inputs called Employee Name and Designation.

power automate change trigger

I have added two compose data operations to display the EmployeeName and Designation values from the dynamic content value as below:

change trigger in power automate
  • Now, I want to change the old trigger action and then have to add a new trigger action.
  • Changing the trigger action is easy; we can select the ellipse and choose the delete option, which deletes the existing trigger, as highlighted below.
change trigger in power automate flow

A popup appears as a Power Automate warning; this step and associated dynamic content will be deleted from this flow.

Select the OK button, which also deletes the dynamic content values used in further actions presented in our flow.

We must select this OK button to change or delete the old trigger action.

How to change trigger in power automate flow

The screenshot below shows that the trigger has been removed, and the dynamic content values used in the compose data operation are removed from the flow.

Power Automate does not warn when the dynamic content values are missing in our flow. Here, when we select any other trigger action.

We have to go through the flow to check and replace the dynamic content reference value passed from the old trigger action and replace them; when it is a single input value required field, we will get a message like the highlighted below and pass the new trigger action dynamic content value in it.

How to change trigger in power automate

We can copy actions to the clipboard to retain trigger references to overcome this. In the below example, I’ll show how to do it.

Example-2: (Copy all action to clipboard)

In this example, we can change the trigger action by coping with all the remaining actions presented in the flow.

In this example, I am going to use the below SharePoint list.

change trigger action in power automate flow

Here, I have created an automated cloud flow with the trigger when an item is created or modified.

Added two compose data operations to display the Technology field value (default title column) and Description field value as shown below:

change trigger action in power automate

Follow the below steps to achieve this:

See also  Power BI Pie Chart Conditional Formatting

1. Expect the trigger action and add all the remaining actions presented in the flow into one scope action. For that, add a new step and choose the Scope control under actions.

How To Change A Trigger In Power Automate

2. In the screenshot below, you can see that I have added all the actions into the scope control except the trigger action.

How To Change A Trigger In Power Automate flow

3. Copy the scope control action to the clipboard to retain all the dynamic references.

Change A Trigger In Power Automate flow

4. Now, I will change the old trigger action ‘when an item is created or modified‘ to the ‘when an item is created‘ trigger action. Delete the Existing trigger by selecting ellipses and choosing the delete option; it will also delete the dynamic reference used in the flow.

How do you change the initial trigger in a flow

5. Select the new trigger action from the action triggers or create a new flow with the correct trigger action and Paste the scope control from the My Clipboard, which retains all the dynamic references.

Here, I have changed the trigger action from ‘when an item is created or modified‘ to the ‘when an item is created‘ trigger action. Add a new step and choose Scope control action from My clipboard; it will add the actions with the dynamic content values.

How do you change the initial trigger in a Power Automate flow

6. Once the scope control has been added to flow it looks like below: Now delete the existing scope control action:

How can I change flow trigger without losing the following actions

7. Save and Run the flow; the flow will only trigger when a new item is created in the SharePoint list. Here, I have created the below highlighted list item:

change flow trigger without losing the following actions in power automate

8. Once the flow runs successfully, we can see the created item Technology field and Description field value in the compose data operation.

change flow trigger without losing the following actions

Example-3: (JSON key-Value Pair)

In this example, I will show you how to change the trigger, recreate the reference in compose data operation with JSON format, and use the output of the trigger in the complete flow.

I am going to use the below Technology SharePoint list:

change trigger action in power automate flow

Here, I have created an automated cloud flow when an item is created trigger. Configure the SharePoint site address and List Name.

change flow trigger without losing the following actions in power automate flow

Added a compose data operation, Add passed the JSON code below: which returns the value from trigger action.

{
"Technology": "@{triggerOutputs()?['body/Title']}",
"Description": "@{triggerOutputs()?['body/Description']}"
}
how to change flow trigger without losing the following actions in power automate flow
outputs('Compose_-JSON')['Technology']
trigger without losing the following actions in Power automate
outputs('Compose_-JSON')['Description']
trigger without losing the following actions in Power automate flow

Now, I am going to change the trigger action from ‘when an item is created‘ to ‘When an item is created or modified’.

1. Delete the Existing add the new trigger action, and configure the required parameters: Here, I have deleted the ‘when an item is created‘ and added the new trigger action as ‘When an item is created or modified’.

trigger without losing the following actions in flow

2. In the compose data operation JSON code format, pass the output of the trigger action, If change only for the particular action, the further steps will not break in Flow.

how to change flow trigger without losing the following actions in power automate flow

3. Save and Run the flow. Here, I have modified the below-highlighted list item:

how to change trigger without losing following actions in flow

4. Once the flow runs successfully, we can see the expected output: If we change the value only for the JSON code format from the trigger action the further steps will run without any break.

trigger without losing following actions in flow

This is how to change the trigger in a Power Automate flow.

See also  Power BI Slicer Search Box

Example-4: (Change the trigger during the Approval Process)

In this example, we will see what happens when we change the trigger action during the approval process and whether the existing item will be affected or not when we change the trigger action.

Here, I am going to use the below SharePoint list.

Change trigger action in power automate

Follow the below steps to create a flow to change the trigger during approval process:

1. We created an automated cloud flow, with the trigger when an item is created or modified. Provide the SharePoint site address and List Name.

How to Change trigger action in power automate

2. Add three compose data operations to get the ID, Manager’s Email, and UserName

triggerOutputs()?['body/ID']
change the initial trigger in a power automate flow
triggerOutputs()?['body/Manager/Email']
change the initial trigger in a power automate
triggerOutputs()?['body/Title']
change initial trigger in a power automate

3. Select +new step and add the “Start and wait for an approval” action specifying the start of a Manager approval process. This action has below fields:

  • Approval type: Select an approval type as “Approve/Reject – First to respond” from the drop-down.
  • Title: Pass the output of the user name from the Dynamic content.
  • Assigned to: pass the dynamic content of the manager’s email.
How to change initial trigger in a power automate

4. Now check the condition if the Outcome is equal to Approve. If yes, use the Update item action to update the status as Approved and send an email to the user that the leave request has been approved.

In the Update item action, configure the SharePoint site address and List name. In the ID pass the ID of the compose data operation from the dynamic content; in the status field from the dropdown choose Approved.

Add a new step and choose Send an email (V2) action, Enter the required fields in the TO, pass the requested user email address, and provide the subject and the body of the email.

Similarly, If No, use the Update item action to update the status as Rejected and send an email to the user that the leave request has been rejected; in the status field from the dropdown, choose Rejected.

Configure the SharePoint site address and List name in the Update item action. In the ID, pass the ID of the compose data operation from the dynamic content, and in the status field from the dropdown, choose Rejected.

Add a new step and choose Send an email (V2) action, Enter the required fields in the TO, pass the requested user email address, and provide the subject and the body of the email.

Add a trigger to an existing flow in Power Automate

5. Save and Run the flow. Here, I have created the below-highlighted list item:

power automate change trigger conditions

Now the flow is running; the manager didn’t select either approve or reject.

change trigger conditions in power automate

6. Now I am going to change the trigger action from ‘when an item is created or modified‘ and add the new trigger action as ‘When an item is created‘ as below: Also, pass the reference from the dynamic content values in the compose data operation for the changed trigger.

change flow trigger without losing the following actions in the Power Automate flow

7. Now save and run the flow here I have created a new item as highlighted below:

change trigger conditions in power automate flow

The flow will run only if the managers approve or reject the leave request. Here I have rejected the leave request for approval. Once the flow runs successfully, like below:

How To Change A Trigger action In Power Automate

It updates the value as rejected in the status field below for the newly created item:

How To Change A Trigger action In Power Automate flow

Also, send an email that the request has been rejected. Here for testing purposes, I have used a created by-email address.

Change A Trigger action In Power Automate flow
  • Now, for the existing item, The flow runs successfully only if the manager approves the leave request. It updates the status field as Approved and sends the email.
  • For the existing item, if we modify any changes, the flow will not trigger again because we have changed the trigger action from ‘when an item is created or modified‘ and added the new trigger action as ‘When an item is created‘.
See also  Clustered Column Chart in Power BI + 6 Examples

Here, I have approved the leave request for approval, so the flow runs successfully:

Change A Trigger action using Power Automate flow

In the SharePoint list, we can see that the status field gets updated as Approved.

Change A Trigger action In the Power Automate flow

Also, the user will receive an email like below: Here for testing purposes, I have used a created email address.

Add a trigger to an existing flow in Power Automate flow

This is how to check whether the existing item will be affected or not when we change the trigger action in Power Automate.

Conclusion

I hope you get an idea to change the trigger action in the Power Automate. Here, I have shown you three ways to change trigger in Power Automate flow.

In the first example, I have shown you to delete the existing trigger and create a new one. In the second example, I have shown you how to use the My Clipboard feature from a Scope control action.

In the third example, I have shown you how to change the trigger values in the JSON code format, so that it will not break any further steps in flow when we change the trigger action in Power Automate flow.

Finally, I have shown you what happens when we change the trigger action during the approval process, and whether the existing item will be affected or not when we change the trigger action.

You may also like:

  • Simply desire to say your article is as surprising. The clearness in your post is simply excellent and i could assume you are an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the gratifying work.

  • >