How to use report defination in an activity

Hi,
In my application a data type called MediCoPlus Medicines. When a Medicine is going to expire in next 30Days an Email will be sent to the customers.
can anyone explain me how to configure …

@AkhilC16801935

Create a job scheduler that runs daily at midnight that will trigger a data page (in turn report definition) to get the list of medicines that will expire in 30 days. You can send an email based on your business requirements

Hi @AkhilC16801935: For your use case, you need to create a job scheduler which will run every day. See this for info regarding job schedulers.

To fetch the data from your data type, you can use a data page (or) call the report using pxRetrieveReportData (see this).

To send email, you can see some examples here.

Thanks.