generate task record

Vedavalli
Tera Expert

Hi 
I have a table name as do in that form I have frequency field(choice)--choices are daily, weekly, monthly, yearly and also I have user field.
In the do form I have publish button if I click state changes to published .After publishing, system should automatically create the record in Private Task table as per the mentioned frequencies and occurrences 
for this I need business rule script.

3 REPLIES 3

AshishKM
Kilo Patron
Kilo Patron

Hi @Vedavalli , 

Please share both the table name and some mandatory field name of target table.

Write a draft BR [update] script and share we will update it. In BR apply the condition on state change to publish.

 

sample code

var gr = new GlideRecord(<tableName>);

gr.initialize();

gr.fieldName1= value1;

gr.fieldName2= value2;

gr.insert();

 

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hi @AshishKM 
do and vtb task tables.
start date,end date,frequency fields

can u write draft script for BR and share screenshot.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution