Prince Arora
Tera Sage

@Hiroki Miyashit ,

 

What do you mean by input form, Are you talking about some record of table?

 

BTW here is the code to send the approval to particular group, you need to create a UI action server side and write this code mentioned below:

 

var approval = new GlideRecord('sysapproval_group');
approval.initialize();
approval.assignment_group = //pass the sys_id of group to whom you want to send Approval request
approval.approval = 'requested';
approval.parent = current.sys_id;
approval.insert();
action.setRedirectURL(current);

 

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

View solution in original post