I’m creating my custom module to view some info that it saves through a Scheduled Tasks. My question is can I install the cron Scheduled Task directly during the module installation, or do I have to do it manually?
Now I install the scheduled tasks in custom/Extension/modules/Schedulers/Ext/ScheduledTasks/ !!
Beyond this I wanted to know if it was always possible during the installation phase of the custom module, to add relations for example to the prospect / targets table already present in suitecrm, This always to avoid having to do it manually every time you do a new installation of suitecrm!
If you create a Module Loader package, you can do all that.
If you add the necessary files for the Scheduled job, you will effectively install it. And if your vardef changes cause fields or relationships to be created, they will take effect when people run a Quick Repair and Rebuild, and run the queries proposed by SuiteCRM right from that screen.
Have a look at this to help you create those packages: