当我在SharePoint Sfpx when部件的顶部导入ItemAddResult时,我得到了'node_modules/@pnp/sp has no exported member 'ItemAddResult'': import { sp, ItemAddResult, AttachmentFileInfo } from "@pnp/sp"; 我也收到了同样的消息: AttachmentFileInfo。 在文档中建议导入ItemAddResult:https://pnp.github.io/pnpjs/v1/sp/docs/items
我试图使用Node.js的节点-sp-auth库访问我们的内部sharepoint,但却遇到了一个令人困惑的错误:
ReferenceError:未定义标头
我可以将其追溯到一个内部函数,它使用带有该名称的构造函数。对我来说好像可能缺少一些依赖关系?
在下面的代码中:
const pnp = require("sp-pnp-js");
let w = new pnp.Web("https://acmint.myatos.net/PWA/KanbanBoard/");
pnp.sp.web.lists.get().catch(error =&g
下面是我的代码:
import * as React from 'react';
import styles from './PnpfolderoperationsDemo.module.scss';
import { IPnpfolderoperationsDemoProps } from './IPnpfolderoperationsDemoProps';
import { escape } from '@microsoft/sp-lodash-subset';
import { PrimaryButton } from
嘿,SPFx开发人员,我在一个小的SPA中遇到了一些安全令牌的问题,这是我在SPFx框架上开发的,它与SharePoint online中的数据交互。
如果应用程序处于空闲状态,或者只执行GET请求,则安全令牌似乎变得陈旧,更新或插入记录的POST请求失败( 400或403错误)。如果我刷新页面,然后尝试相同的操作,它会成功。
我使用带有React和sp-pnp-js库的SPFx框架来执行REST操作。
以下是我的TS服务中的代码片段:
public async add(newProject){
try{
let res = await pnp.sp.web.lists.g
我希望通过ID读取特定列表元素的值,并将其显示在SharePoint站点上。
问题是我试图使用PNP框架,但是其中一些组件不再工作了。到目前为止这是我的密码。我希望你能帮助我。
import * as React from 'react';
import styles from './Webpartprojectsw.module.scss';
import { IWebpartprojectswProps } from './IWebpartprojectswProps';
import { escape } from '@micros
我在IE上运行了这个错误,在Chrome等人上运行得很好。 [SPLoaderError.loadComponentError]:
***Failed to load component "3aac0bde-0ef1-46a1-a7f4-216112d395d5" (CompactCustomListWebPart). Original error: ***Failed to load entry point from component "3aac0bde-0ef1-46a1-a7f4-216112d395d5" (CompactCustomListWebP
我正在运行一个小代码来上传SharePoint 2016文档库中的文件和更改元数据。
有时(但确实经常),我的代码返回错误"Error have request in Queryable404 Not Found“,并显示消息"Item不存在。它可能已被其他用户删除”。
这是我的代码:
pnp.sp.web.getFolderByServerRelativeUrl("/sites/mysite/ConfigDL").files.add(fileOgg.name, fileOgg, true).then(function (data) {
var Rela
正如标题所述,我试图在我的PropertyFieldCollectionData属性窗格中使用SPFx。但是当我运行代码并试图在人中搜索时,什么也没有出现,甚至连我自己也没有。
不知道这是否有帮助,但这也是进口品
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import {
IPropertyPaneConfiguration,
IPr
我已经创建了页面,然后使用下面的函数以编程方式添加了web部件区域/web部件。 function addWebPart(webUrl, pageUrl,webPartXml,zoneId,zoneIndex, Success,Error){
var context = new SP.ClientContext(webUrl);
var web = context.get_web();
var file = web.getFileByServerRelativeUrl(webUrl + pageUrl);
var webPartMngr = file.getLimitedWebPartMa