Add a Script Include in Mobile UI Rule Condition field

Zack Hilacan1
Mega Sage

Is it possible to call a script include in the condition field of Mobile UI Rule. Here's a snap of my current implementation. This script include function returns a knowledge number so that when it is the same in one of the Knowledges number in the mobile list it will change the color of its title. Indicating that it is already opened by this user.

ZackHilacan1_0-1692351809892.png

The content of the script include is to retrieve the kb_use record if the current logged in user in Now mobile is in the 'user' field and if that record is today meaning it will get the latest kb_use record, basically getting the knowledge number of the knowledge article opened/viewed by the user.

Thanks in advance!

1 REPLY 1

Jose Manuel
Tera Contributor

You can call your script include inside the Advanced script

JoseManuel_0-1732206081426.png

and save this value inside in m_scratchpad variable. You can use this variable in the conditions:

text_07=m_scratchpad.myresult