On Form Submit Rule doesn't work if the request is submited by Maintenance Task

On Form Submit Rule doesn't work if the request is submited by Maintenance Task

Hi Team,
I'm configuring several templates which will be submitted on Maintenance Tasks.
These templates have a rule on "On Form Submit" that fills date fields.
The date fields are correctly filled if I submit any of them manually.
The fields are kept empty if I submit them on a Maintenance Task. 

Using a simple date field "WorkOrder_Fields_UDF_DATE3", you can test with a rule, without conditions, like this one: 

var d = new Date();
var dd_day = d.getDate(); 
var dd_month = d.getMonth() + 1;
var dd_year = d.getFullYear();

var dd_date = new Date(dd_year + "-" + dd_month + "-" + dd_day +", 08:30:00");
dd_date.setDate(dd_date.getDate() + 1);

$CS.setValue("WorkOrder_Fields_UDF_DATE3", dd_date); 

Will I need to do the calculations on a Deluge function called by a business rule or a custom trigger?
I've got the same results on SDP Enterprise v14.505 and SDP Standard v14.502 (both running on MS SQL Server).

I'm an Also/Ireo partner, from Rumos Consulting.

Can you help me with this?

Thanks.




                  New to ADSelfService Plus?