Pass case sys_id to workspace context menu

Roen
Kilo Expert

Hi,

I am developing a custom context menu component for the agent workspace.

How do I pass the current case sys_id to my now ui framework component?

I have read the developer documentation a million times but I just cannot find out how this is done.

Please if anyone knows this I would be incredibly grateful to know.

1 ACCEPTED SOLUTION

DrewW
Mega Sage
Mega Sage

Components have a number of automatically passed attributes/properties.  You can see them by going to "Workspace Experience -> Contextual Side Panel" then just pick any record and scroll down to the related list "Action Model Fields".  You should see a list of 10.

find_real_file.png

You can then just do this in your component code and I believe case matters so if it does not work at first check the case of the property. 

properties: {
   sysId: {
      default: null
   },
   table: {
      default: null
   }
}

 

I have also found that you can detect if your component is being used on a form vers a home page by just checking if gForm was passed.

 

View solution in original post

7 REPLIES 7

Drew, do share any tips and tricks you learned 🙂 Maybe even have a look at my questions about Now Experience framework 🙂

americo
Tera Contributor

amazing, you know first hand the people behind UI Framework for agent workspace 😄

I would call it more I know a guy that knows a guy that got me some answers to my frustrations.