Hi @Yernaidu Siraparapu ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
Yes, this requirement can be automated end-to-end without any manual intervention.
A recommended approach is to use an Azure Function with a Timer Trigger to run on the required schedule (daily/hourly). The function can download the XLSM workbook from SharePoint Online using Microsoft Graph, modify the workbook by removing workbook structure protection and making the hidden "Pivot" worksheet visible, save the file back in XLSM format while preserving the workbook content, and then upload the processed file to Azure Data Lake Storage Gen2 (ADLS Gen2). Azure Functions support scheduled execution, Microsoft Graph supports downloading file content from SharePoint Online, and ADLS Gen2 SDKs support programmatic file uploads.
Recommended Workflow
Azure Function Timer Trigger
↓
Download XLSM from SharePoint Online using Microsoft Graph
↓
Remove workbook structure protection
↓
Unhide the "Pivot" worksheet
↓
Save workbook as XLSM
↓
Upload the processed file to ADLS Gen2
This approach satisfies the requirement of processing the SharePoint-hosted XLSM file, exposing all four worksheets (Instructions, Template, Pivot, Pivot Table), and storing the final XLSM file in ADLS Gen2 without manual intervention. [learn.microsoft.com],
References
Azure Functions Timer Trigger (Scheduled Automation) https://learn.microsoft.com/azure/azure-functions/functions-bindings-timer [learn.microsoft.com]
Download files from SharePoint Online using Microsoft Graph https://learn.microsoft.com/graph/api/driveitem-get-content [learn.microsoft.com]