Skip to main content
Question

Create New Record in a Table using Client Script.

  • April 15, 2024
  • 1 reply
  • 48 views

Forum|alt.badge.img+6

Dears,

 

Please let us know how to create new records into a table using Client Script.

 

Thanks & Regards,

Narsing

1 reply

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • April 15, 2024

Hi @Narsing Rao 

you did not say which client this is for.

You can use for the Webclient the following example to create a task.

var createdTask = createInsertRequest('task', {request_id: '123', task_template_id: 'ABC_TEMPLATE'});
var executeResponse = executeRequest(createdTask);
if (executeResponse != null && executeResponse.$type == 'ErrorResponse')
{
displayUserToast(response.message, 'error');
}

Cheers!