Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Check if a Column Exists in Document Library

Hi All,

I have a use case where in i would want to check dynamically in a document library if a column exists in that particular library and if not create that particular column.

is that possible through power automate?

Any help would be appreciated.

Dual Super User
Dual Super User

Hi @Jayant_2203,


Yes, that would be possible. You could retrieve the existing columns via an Send an HTTP action and the Fields method in the REST API and use a filter array to check if your custom column already exists.


Below is an example of that approach.


1. Send an HTTP request uses this URI. In this example I am using a string variable ListName which is storing the name of the list.



2. Filter Array uses the results collection of the output body.



In the where I am comparing the InternalName of the field to the name of our custom field. In my example that name is stored in a string variable called FieldName.





When the output of the Filter Array is empty you could create the new column.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,483)