How to Set Up a Scheduled Job (Cron) that Outputs a Specific JSON Payload?

This topic was automatically generated from Slack. You can find the original thread here.

Hey There

Is there a way of setting up a schedule job (cron), that provides an output? I want to effectively send a specific json payload (like a webhook), but I can run it on schedule

you can setup a workflow with a schedule trigger, then add a http step to send a request

Sorry, i might not have been explaining this correctly.

I dont need the http request, I just need a payload or identifier of the schedule, ideally the scedule would have a payload that i could use with an id for the particular use

I still not quite understand, would you mind clarifying or sharing examples?

sure, I just want to set up a schedule (cronjob), so on 15mins, it has payload A
30mins has payload B, 45mins ha payload C, 60mins has payload D

kind of like the HTTP webhook, I could always fire from another event, but i thought it would be cleaner to do within the flow.

You can add the schedule trigger, then add a code step to produce different payload based on the time.

yeah cool, That makes sense. I’ll just set up some record of which, cheers