Word
A family of Microsoft word processing software products for creating web, email, and print documents.
753 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there, I have generated an Office word add-in the react-spfx template using yo man generator. I am trying to auto populate the word header with the managed properties and other metadata related to the document in SP library. But having trouble getting the right pnp context setup. Thank you.
export const getSP = (context?: ISPFXContext): SPFI => {
if (_sp === null && context !== null) {
_sp = spfi().using(SPFx(context)).using(PnPLogging(LogLevel.Warning));
}
return _sp;
};