Playbook record generator loading infinitely

AnirudhKumar
Mega Sage
Mega Sage

Hello folks,

 

Setup:

We have configured a Record Generator for our custom application with Process Definition and a new View that needs to show basic fields required.

 

Issue:

On trying to create a new record from Workspace, the playbook shows the record generator activity with the fields defined in our custom view. Good so far. But a problem occurs when the Continue button is clicked. The record generator activity loads on infinitely without opening up the next activity in the playbook.

 

Observations:

After the Continue button is clicked, we noticed the playbook context (sys_pd_context) does get created on the backend. Also, the intended case record (our custom application based on a case) is also created on the backend. When we go back to the Workspace list, and open this newly created record, the playbook shows the next activity opened! However, this does not happen from the new record page.

 

What we tried so far:

We tried using different a view name on the Record generator (playbook_record_generator)

We also tried checking if there are any mandatory fields that are required for the form to be created via a record generator.

 

There does not seem anything else we can try out.

Has anybody faced this before?

2 REPLIES 2

Thom23
ServiceNow Employee
ServiceNow Employee

Hey!
You need to add a client script:

function handler({api, event, helpers, imports}) {
    helpers.screen.updateStatus({ screenParams:{ table: event.payload.table, sysId: event.payload.sysId}});

}

and then hook that up the the Playbook record generated event on the playbook component. This will tell our parent page to update the table and sysId props of the generated record.

 

I hope that fixes your problem 🙂

Thank you so much, we'll try it out and see what happens.

It's funny how ServiceNow is all about the "experience" but creates products such as the Playbook that drives everybody mad (starting with developers all the way up to clients)