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 / Publishing SharePoint ...
Power Automate
Unanswered

Publishing SharePoint pages via PowerAutomate

(0) ShareShare
ReportReport
Posted on by 76

Hello guys,

 

I'm trying to publish a number of SharePoint pages using PowerAutomate.

The pages are located under the "Site Pages" library in SharePoint.

So here is the flow I made so far:

 

Flow1.png

Flow2.png

 

My flow fails on the get item part:

 

err1.png

ERR2.png

 

I only need to get the value of the ID field, so I can use it in the following call:

 

_api/sitepages/pages('ID')/publish

 

This call should be made against all the IDs present in the Site Pages library.

 

Could you give me any ideas on how to achieve this?

 

Thanks. 

 

Categories:
I have the same question (0)
  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @leolsdn 

     

    In the Get Item action under Apply to each loop, for ID column you should place following expression:

    items('Apply_to_each')?['ID']

     

    Current Item - Gets all the attributes of the item. You need only ID value. 

     

    Give a try and update here if you need further help.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • leolsdn Profile Picture
    76 on at

    thanks @rsaikrishna .

    That worked!!!

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard