- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 09:54 PM
I have a question about the Record Producer script.
I have a variable set for the user information input section that can be used in other catalogs.
I would like to get the value in the variable set and set it to the field in the record when I create the record, How do I write a record producer script?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 10:10 PM
Hello @Takumi Ando
You can use like below :
var variable_1 = producer.variable_name; //to get variable value
current.setValue('field_name', variable_1); //set value on record
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 10:32 PM
AI Generated !
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 10:57 PM
@Sohail Khilji Thanks for your note!
I just wanted to clarify that I did enhance my words, but I can assure you, no AI magic involved—just a sprinkle of inspiration! And yes, I noticed those words might sound a bit 'Shashi Tharoor-ish,'😂 but hey, a little linguistic flair never hurt anyone!😉