No video

On Demand/Classless Script Include (with use case)

  Рет қаралды 2,535

TechWithPri

TechWithPri

Күн бұрын

Пікірлер: 10
@ayodelebolarin4881
@ayodelebolarin4881 7 ай бұрын
Hi. Thank you for making these videos. They are really helpful. I passed my CSA after watching your preparation series. I am a member. I have a quick question: how do you get the field names in blue to appear?
@techwithpri
@techwithpri 7 ай бұрын
Its my pleasure !😇😇 Can you tell me the time of the video where you get this blue field names?😀😀 I would happy to help you !!
@ayodelebolarin4881
@ayodelebolarin4881 7 ай бұрын
Thanks for your response. Around 6:33. E.g, the Parent Incident displays the parent_incident in blue.
@techwithpri
@techwithpri 7 ай бұрын
@@ayodelebolarin4881 I checked it . This is not something that I have applied externally..i think i selected that field and that's why it's showing or kind of highlighting..😄😄
@GillerlaRajesh
@GillerlaRajesh 2 ай бұрын
Hlo pritham, I got doubt here when u calling script include in server side i means in business rule side here U directly called function name right here. But syntax says that new scriptincludename(). function name(); right I too tried calling new script include name.function name but its not working, but i called using directly function name it will working fine Is there any specific criteria is there to call script include in server side ? I thinka as per my understanding only one way rigt.
@techwithpri
@techwithpri Ай бұрын
Hey 👋 Thats a good finding !! Well understand the fundamental the classless script include can contain one function and the function name is same as the script include name. Thats why when you call the function it automatically calls the script include as name of the script include and function has to be same. You should use new keyword when you are calling function which is defined in create a new class script include as there the function name and script include name is different 🤓.
@abidjaffrey5786
@abidjaffrey5786 2 ай бұрын
Hi Pritam, I Could you help me if there is any error in the below, it is not executing. Script: function updateWorkNotes(problemID,workNotes){ var gr = new GlideRecord('problem'); gr.addQuery('sys_id',problemID); gr.query();{ if(gr.next()){ gr.work_notes = workNotes; gr.update(); } } } BR: (function executeRule(current, previous /*null when async*/) { var workNotes = curerent.work_notes.getJournalEntry(-1); updateWorkNotes(current.problem_id,workNotes); })(current, previous);
@techwithpri
@techwithpri 2 ай бұрын
Hey 👋 In which table you run the BR?
@GillerlaRajesh
@GillerlaRajesh 2 ай бұрын
In script include see u given flower brace after gr.query(); Please remove that one and check
@devenbedase6246
@devenbedase6246 Ай бұрын
In BR you made a spelling mistake while writing current. var workNotes = curerent.work_notes.getJournalEntry(-1); var workNotes = current.work_notes.getJournalEntry(-1);
Define a new Class Script Include (use case)
30:04
TechWithPri
Рет қаралды 2,6 М.
GlideAjax - Client Callable Script Include
21:36
TechWithPri
Рет қаралды 2,7 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 49 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 6 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 30 МЛН
ServiceNow Business Rules
24:29
TechWithPri
Рет қаралды 11 М.
GlideRecord Methods (Part 1)
19:35
TechWithPri
Рет қаралды 4,4 М.
Return Multiple Values from Script Include (JSON Object)
22:59
TechWithPri
Рет қаралды 2 М.
Why is anti-immigration sentiment on the rise in Canada?
13:00
The Guardian
Рет қаралды 1,9 МЛН
Different use cases of Flow Designer
27:24
TechWithPri
Рет қаралды 8 М.
getReference ( no callback) vs getReference (callback)
14:32
TechWithPri
Рет қаралды 2,2 М.
ServiceNow - What is Flow Designer
15:27
TechWithPri
Рет қаралды 5 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 25 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 49 МЛН