Skip to content

Conversation

@manrick
Copy link
Contributor

@manrick manrick commented Oct 18, 2023

Hi Team,

The GlideSystem User object has a useful function, which is called getMyGroups. This gives back the sys_ids of current user's group. But the functionality behaves differently depending where it is called from Global or Scoped App.

My solution is a simple function which checks that the group list is a JavaObject or not. If so, it is converted to JS Array. From this point it doesn't matter where it is called from, the result will be the same type of object in both cases.

Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the contribution

@SapphicFire SapphicFire self-assigned this Oct 18, 2023
@SapphicFire SapphicFire merged commit 4bf8f52 into ServiceNowDevProgram:main Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants