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

How can I place a condition if my XML File has no records then to give me an email message else to create record(s) in SP List?

My goal is to create a condition step to check if the newly created XML File in a SharePoint Library has any records? If it has no records, then to send me an email message else parse and create record(s) in a SharePoint List. What I have below gives me an error rather than an email for an empty XML File. Please help me correct my mistake here.




Resolver II
Resolver II

Used this solution:  But still gives me error if the file is empty.

Looking for a well formatted empty XML file to do my test...

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,426)