Update Template field value in Json format from the custom string field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 11:12 PM
We have below form where u_checklist_item is the custom filed. If user put the checklist item name (checklist_item_name_1, checklist_item_name_2, checklist_item_name_3, etc) then, those value should auto update in the "template" field in below format.
{"owner":"sys_id from the user field","name":"","items":[{"name":"checklist_item_name_1","order":0},{"name":"checklist_item_name_2","order":1},{"name":"checklist_item_name_3","order":2},{"name":"checklist_item_name_4","order":3},{"name":"checklist_item_name_5","order":4}]}
before saving form it look as below:
after saving form it should look like below:
I am going to write before business rule, can someone help me with script.