cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alois
Helper III
Helper III

Monthly Patch to Sharepoint List without Flow

Hi All,

Attached is a simple table showing count and amount. I would like to patch them to a sharepoint list called 'Monthly Report' on a monthly basis without relying on Flow. My idea is illustrated with a pseudocode something like this:

If(Today's date => 30 and Tomorrow's date <= 31, Patch(Monthly Report, ....))

Would it be possible to achieve this? However, I'm stuck with the syntax and logical reasoning. 

Alois_0-1605085033369.png

Regards,
Alois

 

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User
Super User

Hi @Alois 

I don't think that the formula should be an issue, I strugle to understand how do you want to trigger the patch() function.  You think to patch () info into monthly report when the app is starting based on that condition ?

Or do you have something else in mind like a button ?

 

To see if today() is the last day of the month, you can use this condition inside the if statement:

       Today() = DateAdd( DateAdd( Date(Year(Today()), Month(Today()), 1), 1, Months), -1, Days)

 

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Super User
Super User

Hi @Alois 

I don't think that the formula should be an issue, I strugle to understand how do you want to trigger the patch() function.  You think to patch () info into monthly report when the app is starting based on that condition ?

Or do you have something else in mind like a button ?

 

To see if today() is the last day of the month, you can use this condition inside the if statement:

       Today() = DateAdd( DateAdd( Date(Year(Today()), Month(Today()), 1), 1, Months), -1, Days)

 

Hope it helps !

View solution in original post

Thanks! I was struggling with the formula to check if today is the last day of the month. I intend to trigger the patch function when the app starts hence I'll insert the code in OnStart section.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,922)