# 📅 How to schedule scenario for the last day next month (recurring)

**URL:** <https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515>\
**Category:** Knowledge Hub\
**Tags:** scheduling\
**Created:** [February 6, 2024, 4:31am UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515 "2024-02-06T04:31:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [February 6, 2024, 4:31am UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/1 "2024-02-06T04:31:40Z")

</div>

# Summary

Here’s how to use the Make API module to reschedule the scenario to run only on the last day next month. Using this method, you can potentially save three operations (since you do not need to run on all 28/29/30/31), and you don’t need an additional filter.

 ![Screenshot_2024-02-06_152831](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/b/7b04d3d496dce6e0236d6f18d2f294c740e57b93.png)

Just put this somewhere in your scenario (it can even be the trigger module), so it will reschedule itself to the last day next month at noon.

You will need to set up your Make API connection. [Instructions can be found in the Help Center](https://www.make.com/en/help/apps/process-management/make). When creating a Make API Token, you need to select the scope “scenarios:write”.

 ![Screenshot_2024-02-06_150531](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/3/d3220e3a7211443ffbaa573ccf7f5a38294ca5bc.png)

# Demo

After running this scenario in February 2024, it has rescheduled to 31st March 2024. When this scenario runs in March, it will reschedule the next run to 30th Apr 2024, and so on.

 ![Screenshot_2024-02-06_152811](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/8/18dfa01dcaa0e173979ad5538790723828e37ee5.png)

# Gimme the module

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above, along with the mappings.

1. Copy the code below by clicking the copy button when you mouseover the **top-right** of the code block  
 ![Screenshot_2024-01-17_200117](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/b/2b1b692880388420db5045bf51ef344e6698a816.png)

2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV to paste in the canvas.

3. Click on each imported module and save it. You will need to set-up/select your Make connection.

### Modules JSON Export

```json
{
    "subflows": [
        {
            "flow": [
                {
                    "id": 3,
                    "module": "make:makeApiCall",
                    "version": 1,
                    "parameters": {
                        " __IMTCONN__": 113550
                    },
                    "mapper": {
                        "url": "/v2/scenarios/{{var.scenario.id}}",
                        "body": "{\"scheduling\": \"{ \\\"date\\\": \\\"{{setSecond(setMinute(setHour(setDate(addMonths(now; 2); 0); 12); 0); 0)}}\\\", \\\"type\\\": \\\"once\\\" }\"}",
                        "method": "PATCH",
                        "headers": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ]
                    },
                    "metadata": {
                        "designer": {
                            "x": -30,
                            "y": -342,
                            "name": "Last Day Next Month"
                        },
                        "restore": {
                            "expect": {
                                "qs": {
                                    "mode": "chose",
                                    "collapsed": true
                                },
                                "method": {
                                    "mode": "chose",
                                    "label": "PATCH"
                                },
                                "headers": {
                                    "mode": "chose",
                                    "items": [
                                        null
                                    ]
                                }
                            },
                            "parameters": {
                                " __IMTCONN__": {
                                    "data": {
                                        "scoped": "true",
                                        "connection": "make"
                                    },
                                    "label": "Make Connection",
                                    "collapsed": true
                                }
                            }
                        },
                        "parameters": [
                            {
                                "name": " __IMTCONN__",
                                "type": "account:make",
                                "label": "Connection",
                                "required": true
                            }
                        ],
                        "expect": [
                            {
                                "name": "url",
                                "type": "text",
                                "label": "URL",
                                "required": true
                            },
                            {
                                "name": "method",
                                "type": "select",
                                "label": "Method",
                                "required": true,
                                "validate": {
                                    "enum": [
                                        "GET",
                                        "POST",
                                        "PUT",
                                        "PATCH",
                                        "DELETE"
                                    ]
                                }
                            },
                            {
                                "name": "headers",
                                "spec": [
                                    {
                                        "name": "key",
                                        "type": "text",
                                        "label": "Key"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    }
                                ],
                                "type": "array",
                                "label": "Headers"
                            },
                            {
                                "name": "qs",
                                "spec": [
                                    {
                                        "name": "key",
                                        "type": "text",
                                        "label": "Key"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    }
                                ],
                                "type": "array",
                                "label": "Query String"
                            },
                            {
                                "name": "body",
                                "type": "any",
                                "label": "Body"
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "metadata": {
        "version": 1
    }
}

```

# See also

- [How to schedule scenario for **first Monday** next/every month](https://community.make.com/t/how-to-schedule-scenario-for-first-monday-next-every-month/26514)

[samliew](https://samliew.com/services) – [request private consultation](https://samliew.com/request-quote?ServiceType=Automation%20Consultation&Referrer=Make)

> Join the unofficial [Make Discord server](https://samliew.com/make-discord-invite) to chat with other makers!

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [February 28, 2024, 12:42pm UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/2 "2024-02-28T12:42:23Z")

</div>

Pretty cool, hope yo use it in the future 😛

---

<div class="post-metadata">

**Author:** ![Pro\_Tanvee](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Pro\_Tanvee](https://community.make.com/u/Pro_Tanvee)\
**Post date:** [February 28, 2024, 12:45pm UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/3 "2024-02-28T12:45:37Z")

</div>

Impressive brother defiantly use in future.

---

<div class="post-metadata">

**Author:** ![Derek\_Caldwell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/derek_caldwell/32/30525_2.png) [@Derek\_Caldwell](https://community.make.com/u/Derek_Caldwell)\
**Post date:** [March 29, 2024, 3:15pm UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/4 "2024-03-29T15:15:18Z")

</div>

Looking to implement this into a scenario, when I run a test I wanted to confirm the end results. When this Make “Last Day Next Month” module runs… Is it supposed to used the schedule settings within the scenario? Right now the scenario is set to run on March 31st, and when I ran the scenario, the next module didnt update the schedule… I wanted to see what I was missing.

Thanks in advance, this is really cool!

---

<div class="post-metadata">

**Author:** ![alexandr.e](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alexandr.e](https://community.make.com/u/alexandr.e)\
**Post date:** [August 28, 2024, 6:17pm UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/5 "2024-08-28T18:17:27Z")

</div>

Using this scenario as the trigger module (the first module in the scenario), what schedule should I set?

 ![Screenshot - 2024-08-28 at 3 .16.09@2x](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/c/dc1d7c2008f3d530ee67e689005bde42e4bb00a5.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [August 28, 2024, 11:58pm UTC](https://community.make.com/t/how-to-schedule-scenario-for-the-last-day-next-month-recurring/26515/6 "2024-08-28T23:58:22Z")

</div>

It shouldn’t matter, but I recommend selecting **Run Once**.

The module will then set the next time it should run.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

* * *

P.S.: Did you know, [the concepts](https://community.make.com/t/make-academy-course-overview/29699) of about 70% of questions asked on this forum are already covered in the [Make Academy](https://academy.make.com). Investing some effort into it will save you lots of time and frustration using Make later!
