web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help Running Office sc...
Power Automate
Answered

Help Running Office script on Sharepoint List attachment

(0) ShareShare
ReportReport
Posted on by 1,247 Super User 2024 Season 1

Hello All,

 

I am trying to run an office script on a sharepoint list item. But unfortunately the Run Script connector is not able to  find the file and is giving me this following error :

Anonymous_Hippo_1-1619630790172.png

Here is the flow that i have setup. Quick context of what the flow does: 

  • Whenever a new item is created the flow runs and looks if any of the added attachments has "Import_Template" as a file name
  • If the above value returns true then it needs to run an Office script (this is where the issues is)

 

MS Flow ScreenshotMS Flow Screenshot

Can someone please tell me what i am doing incorrectly ?

 

 

PS: I am new to MS flow 🙂

 

Thanks !!!

 

 

 

Categories:
I have the same question (0)
  • Ethan313 Profile Picture
    4 on at

    Office Scripts only works for Microsoft Excel, not Microsoft Lists.

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Yes I understand that. I am extracting an excel file attached in MS list and trying to run office script attached to the excel file- Could you please tell me if that is not supported .... Do i have to copy the file to another library, run the script and re add the excel file to the SharePoint List item ? (I did not want to go this route since it might take longer time to run the flow)

  • Verified answer
    Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Answer by Geoffren

    Sharepoint list attachments are not supported with any of the ExcelOnline Business connectors.

     

    This is a workaround that will allow you to read from the attachment (basically the workaround is to automatically copy the excel attachment into your onedrive, read it there, then delete the file). This won't work if you want to make changes to the excel attachment though...

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard