Forum Discussion

MarioZagreb's avatar
MarioZagreb
Brass Contributor
May 02, 2022
Solved

Include external javascript in Command Set extension

I need to add new menu item to my document library in SP Online which would call methods from external javascript. I have created new item in command bar (with help of MS tutorial) using SPfx and ...
  • MarioZagreb's avatar
    May 02, 2022
    I will answer my own question:
    According to this:
    https://stackoverflow.com/questions/14118878/using-out-of-scope-functions-in-typescript

    to access window object:
    if (window.hasOwnProperty('GetAA')) {
    window['GetAA'].doAction1;
    }

Resources