Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Link a workflow to a Content Type

(0) ShareShare
ReportReport
Posted on by 4
Is it possible to link/associate a power automate workflow with a Site Content Type? So that the workflow gets attached to any list/library where the particular content type is added.
  • Expiscornovus Profile Picture
    Expiscornovus 31,139 on at
    Link a workflow to a Content Type
     
    Great suggestion @David_MA, depending on which trigger action is used you might even be able to check the Content Type Id with that approach 👍
     
    Below is an example of using that property.
     
    @equals(triggerBody()?['{ContentType}/Id'], '0x0101005F13643F1AA1B64CA94AB7E859623CE800B2499CDC9389034BB3670218FF971555')

    This property is available in the When a file is created (properties only) trigger action

     
    Below is an example of the trigger condition setup
  • David_MA Profile Picture
    David_MA 9,039 on at
    Link a workflow to a Content Type
    Simple answer is no. If you wanted the flow to only trigger on Word documents, you could add a trigger condition to the flow. I have not tested this, but I think a trigger condition of @contains(triggerBody()?['{FilenameWithExtension}'], '.docx') may work. If you wanted to include .doc files as well, you modify the trigger condition appropriately. For example: @or(contains(triggerBody()?['{FilenameWithExtension}'], '.docx'), contains(triggerBody()?['{FilenameWithExtension}'], '.doc')). 
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard