locating getmygroup() function

Gwen4
Tera Contributor

Good morning community.... I would like to create/use the same idea that is used in the getmygroup() function however I cant find the function for review. Would any happen to know where this function is and how would i review its full syntax...

Please advise

Thank you for you assistance

13 REPLIES 13

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Its in a global business rule called groups, banners.   So navigate to System Definition\Business Rules and search for that name and you will see it on the Advanced tab.


Thank you Michael for responding so quickly. as suggested I navigated to system definition\ business rule and did a search and see GetGroupFilter and getGroupMembersM2M but not getmyGroups()


Please help


sorry found it.


Michael I hope you can answer another question.... First I would like to thank you for your help and to throw out a disclaimer that I am a newbie to service now coding


I am a little confused.   I am trying to write code that will pass say the project number in instead of group. I thought if i use the same method/syntax I can get the same results
however I can not see the syntax that is used to return myGroup. Please advise


function getMyGroups() {
  return gs.getUser().getMyGroups();
}