We have the following SharePoint document library:
Now we want to run a flow only when the user Publish the document (when its status is changed from Draft to Pending), so I tried this trigger condition:
@equals(triggerOutputs()?['body/{_ModerationStatus}'],2) But the flow will never get executed. Any advice?



