Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Record producer not creating record in target table

Anna_Servicenow
Tera Guru

I have created a record producer that creates record in target table. But as I submit this, its just opening a new empty record, when I put 

gs.addInfoMessage("Ticket number"+current.number); In record producer, its giving me a number and when I search this number , no record is found.
> How can I land on the ticket that got created by record producer

Anna_Servicenow_1-1734093708018.png

 


 

1 REPLY 1

Anand Kumar P
Giga Patron

Hi @Anna_Servicenow ,

 

Check if you have any read ACL in BPM task table that is restricting.

 

producer.redirect = 'bpmtablename.do?sys_id=' + record.sys_id;

Above code  will be paste in the "Script" field of the record producer it will redirect to created record after submitting .