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.

Apply template to Record Producer

maryc
Tera Contributor

Hi,

 

I have a template field on the Service Portal which is accepting ticket information along with template name as a record producer.

I am using current.appyTemplate(<template name>)  in the script section of the record producer, but its not populating all the fields specified in the template.

 

Any help on this?

1 ACCEPTED SOLUTION

Allen Andreas
Tera Patron

Hi,

Can you show your exact script? If possible?

It needs to be structured like in this link (exactly): https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/form-administrati...


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Tera Patron

Hi,

Can you show your exact script? If possible?

It needs to be structured like in this link (exactly): https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/form-administrati...


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Did this actually work? I am using a record producer to create my record and templates are not able to be applied when the template field changes. i think that's what the real question was, how to make the template apply like it does on the backend in Servicenow.