Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Link a workflow to a Content Type

Like (0) ShareShare
ReportReport
Posted on 15 Jan 2025 16:37:02 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,039 on 16 Jan 2025 at 12:00:29
    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 8,364 on 15 Jan 2025 at 16:49:05
    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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard
Loading started