// ServiceNow

Using the template structure in code

You can use the template you created in code to automatically populate the fields with the help of the following code.

var rec1 = new GlideRecord("incident");
rec1.initialize();
// rec1.applyTemplate("inc_temp"); template ismi ile işlem
GlideTemplate.get('42894f2d938002104d1a3a4efaba1069').apply(rec1); //teplate sys_id ile işlem
rec1.insert();

 

// FEEDBACK

Was this useful?

Your rating shows how helpful this note is to other readers.

Was this useful?

Click the stars to rate.

Average rating 0 / 5. Total votes: 0

No one has rated this post yet. Be the first!

Sorry this post was not helpful.

Your feedback is valuable to us.

How can we make this post more helpful?

// JOIN THE CONVERSATION

Share your experience

Got a question, a different solution or a note to add?

// KEEP READING

One more note.

All posts ↗︎