my intranet site is published portal with several designer workflows. I need to display all pending approvals from all sites/subsites across all site collection on home page when logged user is approver. ( i.e. if the user has any workflows waiting for approval it should display count and the workflow url to approve directly).
I know the solution approach to loop through all sites/lists/librares if it is SharePoint onpremise , but since this SPO is there any out of box , or how to get the looping of all sites/sites using client side code? pls share.