Upload Sharepoint File Online and Share using Powershell Script
Hello friends,
To summarize:
I receive data from a MySQL table and it is processed via Powershell. This processing generates a CSV file.
This file, the Powershell Script itself, uploads to a Sharepoint Online library.
What I think - Two possibilities:
1) Or send the file to whoever requests it directly by email, and for this I would like to use the Script code for this;
OR
2) When uploading to a Sharepoint Online library, sharing for those who request it automatically upon execution.
Contextualizing:
We receive many requests for Auditing shares or in shared boxes, PO boxes, OneDrive or SharePoint sites.
Each request from this was initially a manual action.
Now a form that receives the request. The data from this form fills a table, which is consulted by a Powershell script and carries out the processing, generating the result with this file locally.
This part of the "local file" still requires us to return it to the requestor manually. What we want is to make this last step automatic,
If so, is there any script or code suggestion for this?
Thank you very much for everyone's attention
Big Hugs