Тёмный

3 Complex use cases of Script Include (Part 2) 

TechWithPri
Подписаться 12 тыс.
Просмотров 1,7 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@sudipasamanta1502
@sudipasamanta1502 9 месяцев назад
Great 👍 informative video Sir😊, we need more use cases videos like this so that we can improve our scripting skill day by day. Thank you.
@techwithpri
@techwithpri 9 месяцев назад
You are welcome!! In this servicenow developer series you would find more use case videos on business rules,client script, script include and UI Actions which is already uploaded. For more complex use case please join my channel, I would start posting complex use case videos starting from this month. Keep watching and keep learning 👍
@rameshrms4431
@rameshrms4431 10 месяцев назад
Thank you so much Pritham 🙏 please do more videos on integration as well.
@techwithpri
@techwithpri 10 месяцев назад
Sure, will do it 😇
@abidjaffrey5786
@abidjaffrey5786 5 месяцев назад
Hey Pritam thanks for the amazing content. I'm facing issues when we are using the setvalue with JSON function the code seems correct but the value is not updating in assigned. i face the same problem in the 'Return multiple objects from script include' video as well, please help me how can i fix this
@techwithpri
@techwithpri 5 месяцев назад
Hey 👋 Can you possibly share the code you are using for client script and script include here in chat so that I can check and guide you further 🤓
@avia-rw6cy
@avia-rw6cy 5 месяцев назад
Hello Sir, requesting you to please add some script include scenarios which are used in catalog client scripts and development of catalog items.....
@techwithpri
@techwithpri 5 месяцев назад
Hey 👋 Thank you for your comment !! I will surely do that in my complex use case video for ServiceNow. To get access on more use case join my channel now - ru-vid.com/show-UCq9dV0PMEdQFzD4JTCNfK3Ajoin
@kuldippatil2006
@kuldippatil2006 3 месяца назад
Sometimes assigned to value not getting set, even after we are getting sysId of user. Tried alert for the sys id of user. Probably it could be cache issue
@techwithpri
@techwithpri 3 месяца назад
Yes it sould's like that only !! Try again and let me know 🤓
@ferozkasim328
@ferozkasim328 8 месяцев назад
Thank you
@techwithpri
@techwithpri 8 месяцев назад
You welcome !! Keep watching and keep learning 👍👍
@noor-ul-ainatta802
@noor-ul-ainatta802 9 месяцев назад
I am practicing it and to me it is returning the last member of each group, How to tackle it now? I have refreshed as well but didn't work.
@techwithpri
@techwithpri 9 месяцев назад
Hey..!! That's strange..🤔🤔 Can you share your method from script include and client script here..?
@noor-ul-ainatta802
@noor-ul-ainatta802 9 месяцев назад
​ @techwithpri Method: assignrandom:function(){ var usersobj={}; var fetchuser=[]; var grr=new GlideRecord('sys_user_grmember'); grr.addQuery('group',this.getParameter('sysparm_group_user')); grr.query(); while(grr.next()) { usersobj.sys_id=grr.user.toString(); fetchuser.push(usersobj); } return JSON.stringify(fetchuser); }, type: 'GroupMmbersCount' }); Client Script: var ga2=new GlideAjax('GroupMmbersCount'); ga2.addParam('sysparm_name','assignrandom'); ga2.addParam('sysparm_group_user',g_form.getValue('assignment_group')); ga2.getXMLAnswer(assignToRandom); function assignToRandom(response2){ var obj=JSON.parse(response2); if(obj.length>0){ var random = Math.floor(Math.random()*obj.length); g_form.setValue('assigned_to', obj[random].sys_id); } else{ g_form.setValue('assigned_to',''); } }
@techwithpri
@techwithpri 9 месяцев назад
The code seems ok and also it is picking up random user from the group. Try a group which has 7-8 members and let me know what is the outcome.
Далее
3 Complex use cases of Script Include (Part 3)
16:59
Просмотров 1,4 тыс.
3 Complex use cases of Script Include (Part 1)
15:35
Просмотров 2,4 тыс.
Family♥️👯‍♀️🔥 How old are you? 🥰
00:20
On Demand/Classless Script Include (with use case)
15:03
3 Use Cases of UI Actions
28:51
Просмотров 3,4 тыс.
Global Scope vs Private Scope
14:54
Просмотров 2 тыс.
Welcome to ServiceNow Integration
15:21
Просмотров 2,6 тыс.