Hello Alex Nieto Castro,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are in need to automate a Synapse Analytics Pipeline to gather the information from the previous day in every day.
You will need to know how to create a Pipeline Parameter for Dates and Set Default Values for Parameters, so and so forth. The example of expressions you will use is similar to this:
StartDate: @formatDateTime(addDays(utcnow(), -1), 'yyyy-MM-dd')
EndDate: @formatDateTime(utcnow(), 'yyyy-MM-dd')
This setup will automate your pipeline to gather data from the previous day every day, without needing manual intervention. Kindly follow the two links below to achieve the purpose:
- https://techcommunity.microsoft.com/blog/microsoft_graph_data_connect_for_sharepo/step-by-step-synapse-gather-a-detailed-dataset-on-sharepoint-sites-using-mgdc/4070563
- https://techcommunity.microsoft.com/blog/microsoft_graph_data_connect_for_sharepo/four-options-for-sharepoint-site-analytics/4076416
However, if you would like to learn how to do it by yourself, Microsoft has provided a training for you in the additional resources and more documents in the Documentation for your use. You will see all these by the right side of this page.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.