Widget "objectReference" Variable Usage

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm trying to set up an admin tool that builds a presentation using custom widgets and pushes it to a company using the API. I am trying to make the admin tool so it can add a presentation to whatever company is linked to the user that's currently logged in. So my question is, when I build the presentation string and submit it, can I use the widget's objectReference value that I set up in my company to make my widget show up on another company's display?
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
  • caffeinated

Posted 3 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Hi Stephen,

I'm going to forward this question to one of our developers. Have a great day!
Photo of Alex D.

Alex D., Employee

  • 1,038 Points 1k badge 2x thumb
Hi Stephen,

There's something that I need to clarify in your query: the "objectReference" value is not required to run a Widget on a Display, it is the "objectData" (which contains the Widget's URL) and "additionalParams" values which are required to run the Widget.

The "objectReference" is used by the RVA UI to retrieve information about the Widget (to allow configuration of the Widget Settings). This information is not required on the Display hence that field is not required.

Having said that, yes, you can show a Widget from one Compay on the Display of any other Company. However, the RVA UI may not work correctly in terms of configuring the Widget settings. If the Presentation is in a sub-company of yours, and the Widget is shared, it should function correctly. However, the settings won't be accessible in other Companies.

Hope this clears things up. Let me know if you have any further questions.

Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Ok awesome. In theory, our users will just use our admin tool to build the presentation and manage their display so the config page won't be an issue. Thanks!
Photo of Justin

Justin, Employee

  • 2,526 Points 2k badge 2x thumb

Let us know how it works out for you!