Because I can't seem to do what I need to get done using the REST API, I am going to try to use the Project Server JSOM in an SPFx webpart.
I found instructions on how to load the SharePoint JSOM into an SPFx web part by using SPComponentLoader
, but that example shows SP.js
as having several dependencies that need to be loaded first:
init.js
MicrosoftAjax.js
SP.Runtime.js
The example I found of how to get started using the Project Server JSOM only talks about loading the PS.js
file:
<SharePoint:ScriptLink name="PS.js" runat="server" ondemand="false" localizable="false" loadafterui="true" />
and then making sure it's loaded by using executeOrDelayUntilScriptLoaded
:
SP.SOD.executeOrDelayUntilScriptLoaded(MyFunction, "PS.js");
with no mention of any dependencies.
The MS documentation for PS.js Javascript library also does not mention any dependencies.
So, are there any unmentioned dependencies I would need to load before PS.js
in order to use the Project Server JSOM in SPFx?