question

Check-7231 avatar image
0 Votes"
Check-7231 asked JoyZ commented

SharePoint's Out of The Box "Configure page approval flow" uses "For a Selected Item" Trigger

Hi,

I'm new to flows and I saw that you can easily create an Approval Workflow using "Configure page approval flow" (Automate > Power Automate > Configure page approval flow). I have made a few updates on it particularly emails and added metadata. It is working as expected on my initial site but when I tried to Import and Export it on a new site, it does not trigger when I Submit a page for approval.

When I edit the flow, the trigger is set to "For a Selected Item". I am wondering how did this out-of-the-box Approval flow managed to trigger it using "For a Selected Item"?

Note: I have enabled content approval on the new target Site Page library.

Thanks,
Check

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JoyZ avatar image
0 Votes"
JoyZ answered JoyZ commented

@Check-7231,

After exporting the default page approval flow on a new site, it's necessary to update all the site address and list name(library guid) on the new flow:

132155-image.png

Per my test, it works well if I changed all related parameters to new site and site pages library:

132162-image.png

We can find site page library guid via library settings>check the url and intercept the part between %7B and %7D:

132173-image.png


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (9.9 KiB)
image.png (16.3 KiB)
image.png (3.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JulieWang-MSFT ,

The Site and Library is updated.

I am just wondering how does the default page approval utilized the trigger "For a Selected Item".

The scenario is if you :
1. Create the Default approval by "Configure page approval flow" (Automate > Power Automate > Configure page approval flow). It triggers the flow upon submitting for approval on a "For a Selected Item" trigger.
2. But if you import it (even without any changes, 100&% out-of-the-box) to another environment or even in the same environment. It does not trigger it.
Note: I have enabled Content Approval on the list settings before importing it. I have also updated the Site, library on the Flow. Connections is also updated.

Br,
Check


0 Votes 0 ·

@Check-7231,

Per my test, the default page approval could only be triggered when we click the page and edit the page:
132608-image.png

If I export the default page approval flow and import it to the same environement, change parameters(site name and list name), we could find the flow name under the Automate option as shown above.

0 Votes 0 ·
image.png (43.0 KiB)

@Check-7231,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·