Mobile Agent - show Assignment Group using Mobile UI Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 10:37 AM - edited 09-28-2023 10:39 AM
Hello,
I have a Function to update a few fields. I want to make the Assignment Group field is visible ONLY if the user is a member of the current Assignment Group. I looked at SNOW documentation I couldn't find/see a condition that can help my situation. I also watched a video from mobile App Academy: Build a custom Mobile App Advance Functions but they didn't talk about conditions or what would work. Does anyone know what condition will work for my scenario?
Thank you for your help and time,
Maria

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2023 10:28 PM
Hi @Maria29,
I am no Mobile UI expert but from what I see in my PDI, Mobile UI Policies [sys_sg_ui_policy] are tied to Mobile UI Rules [sys_sg_ui_rule]. This seems analogous to UI Policies and UI Policy Actions in the Standard UI.
However, the condition that you have is a little complex to set in a Mobile UI Policy using the Condition Builder. This is because in order to check if the logged-in user is a member of the assignment group, you have to use GlideUser API methods. Would you like to try writing a regular Client Script (by setting the UI Type to Mobile / Service Portal) instead to meet your requirements?