generate task record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-12-2024 07:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-12-2024 07:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-12-2024 08:01 AM
Hi @AshishKM
do and vtb task tables.
start date,end date,frequency fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-12-2024 08:03 AM
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