Skip to Content

How to implement one Cron Job to get all existing cronjobs statuses report to send an email?

How to implement one generic Cron Job to get all existing cronjobs daily statuses report to send an email?

Example: Orderstatus cron job...ect

cronJobname , currentstatus, currentresult time

Thanks,

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 15, 2019 at 12:13 PM

    You have to Create one Custome type extending CronJob with attributes like flexyquery,header,emailTemplate and more

    emailTemplate type should be RenderedTemplate and rest all attribute types should be String Collection.

    You can also have excelfilename as attribute to send the all the cronjob in a mail as a attachment.

    Write a impex with above custom type.

    Your Flexy query should hold the query to get list of cronjob

    Impex should be something as below,

    INSERT_UPDATE CustomReportCronJob; code[unique=true];job(code);mailTemplate(code);singleExecutable;sessionLanguage(isocode);country(isoCode);channel(code);nodeID;sendEmail;emailAddress;source(code);flexiQueries[collection-delimiter=|];csvHeaders[collection-delimiter=|];viewAttributes[collection-delimiter=|];viewAttributesTypes[collection-delimiter=|];modelAttributeRowsForCSV[collection-delimiter=|];excelSheetNames[collection-delimiter=|]

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.