Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to trigger only once per month on last calendar day of month #26707

Closed
hkusulja opened this issue Mar 11, 2019 — with docs.microsoft.com · 10 comments
Closed

Comments

Copy link

How to trigger on last calendar day of month (some months have 28days, sometimes 29, some 30 and some 31 days) ?

Explain what will happen on:
Start: 2019-01-31
Interval: 1
Frequency: Month

will it run on 2019-02-28 , or it will not be run in February at all ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@AmanGarg-MSFT
Copy link
Contributor

@hkusulja Thank you for the question! We are investigating this and will get back to you shortly.

@PramodValavala-MSFT
Copy link
Member

@hkusulja That's a good question!

Azure Logic Apps is set to replace Azure Scheduler as mentioned in this official announcement. So, the Recurrence Trigger supports the advanced examples mentioned here.

The UI doesn't show it but you can include them in your workflow JSON directly.

So, for your use case, your trigger JSON would be something like this

"triggers": {
    "Recurrence": {
        "recurrence": {
            "frequency": "Month",
            "interval": 1,
            "schedule": {
                "monthDays": [-1]
            }
        },
        "type": "Recurrence"
    }
}

@hkusulja
Copy link
Author

@PramodValavala-MSFT I am using Azure Logic App, with trigger -

   "triggers": {
            "Recurrence": {
                "recurrence": {
                    "frequency": "Month",
                    "interval": 1,
                    "startTime": "2019-01-01T02:00:00Z",
                    "timeZone": "Central European Standard Time"
                },
                "type": "Recurrence"
            }
        }

Now I see your example, i have modified it to:

 "Recurrence": {
                "recurrence": {
                    "frequency": "Month",
                    "interval": 1,
                    "schedule": {
                        "minutes":[0],
                        "hours":[16],
                        "monthDays":[-1]
                    }
                },
                "type": "Recurrence"
            }

Please confirm this is only UI / designer issue, and it will be fixed? can you document that this is only code option?

@PramodValavala-MSFT
Copy link
Member

@hkusulja Yes. Its just that the UI doesn't support these advanced schedules yet.
Also, if you were wondering, the JSON schema for the Logic App confirms the validity of these options.

Please feel free to open a feature request on UserVoice for enhancing the UI to support these use cases.

As for the docs, we will assign this issue to the content author to further investigate and update accordingly.

@hkusulja
Copy link
Author

yeah, please update the docs, and say this options is only through code/JSON , not in Designer / UI... tx

@ecfan
Copy link
Contributor

ecfan commented Mar 18, 2019

@hkusulja & @PramodValavala-MSFT, thank you! I've created a work item on our doc backlog for triage.

#please-close

@MWielen
Copy link

MWielen commented Aug 1, 2019

Hi,

I want to set recurrence schedule to 1st of month starting at 03:00 AM
When I try to save the following JSON only monthDays is saved but hours and minutes is lost when saving.

"triggers": {
"Recurrence": {
"recurrence": {
"frequency": "Month",
"interval": 1,
"schedule": {
"minutes":[0],
"hours":[3],
"monthDays": [
1
]
},
"startTime": "2019-08-01T03:00:00Z",
"timeZone": "UTC"
},
"type": "Recurrence"
}
}

Result after saving:

"triggers": {
"Recurrence": {
"recurrence": {
"frequency": "Month",
"interval": 1,
"schedule": {
"monthDays": [
1
]
},
"startTime": "2019-08-01T03:00:00Z",
"timeZone": "UTC"
},
"type": "Recurrence"
}
}

What should I do? Thanks!

Copy link

Is there an option that would allow for something like 'run on the 8th business day of the month' ? Not sure if the above methods would work in this case?

@ecfan
Copy link
Contributor

ecfan commented Dec 11, 2019

@kevinlam1 & @derek1ee, could you please help answer the question from @strategywise about how to set a recurrence to something like "8th business day of the month"? Thanks!

GitHub issue: #26707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants