sharepoint

Working example for Graph Toolkit using SharePoint spfx, React and Get component with template

若如初见. 提交于 2020-12-15 05:41:29
问题 I'm trying to make use of the Microsoft Graph Toolkit inside my SharePoint spfx web part solution, and more specifically the React version (@microsoft/mgt-react). I've managed importing the packages, and also render the control correctly. However I am now trying to render controls based on the result from a control. Something like this: const MyPerson = (props: MgtTemplateProps) => { const { person } = props.dataContext; return <Person userId={person.userPrincipalName}></Person>; } And here

Error when adding rows to a sharepoint excel workbook table MaxRequestDurationExceeded

此生再无相见时 提交于 2020-12-15 00:44:53
问题 here is the full error { "error": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long.", "innerError": { "code": "gatewayTimeoutUncategorized", "message": "The service wasn't able to complete the request within the time limit.", "innerError": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long." }, "date": "2020-11-24T02

Error when adding rows to a sharepoint excel workbook table MaxRequestDurationExceeded

隐身守侯 提交于 2020-12-15 00:44:50
问题 here is the full error { "error": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long.", "innerError": { "code": "gatewayTimeoutUncategorized", "message": "The service wasn't able to complete the request within the time limit.", "innerError": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long." }, "date": "2020-11-24T02

Azure Logic App with SharePoint Connection

我只是一个虾纸丫 提交于 2020-12-13 03:07:57
问题 I am creating my first logic app which connects to SharePoint and adds entries into some sharepoint list. Whenever I create a SharePoint Connection it adds below resource to my logic app. { "type": "MICROSOFT.WEB/CONNECTIONS", "apiVersion": "2018-07-01-preview", "name": "[parameters('sharepointonline_1_Connection_Name')]", "location": "[parameters('logicAppLocation')]", "properties": { "api": { "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters(

Azure Logic App with SharePoint Connection

两盒软妹~` 提交于 2020-12-13 03:05:34
问题 I am creating my first logic app which connects to SharePoint and adds entries into some sharepoint list. Whenever I create a SharePoint Connection it adds below resource to my logic app. { "type": "MICROSOFT.WEB/CONNECTIONS", "apiVersion": "2018-07-01-preview", "name": "[parameters('sharepointonline_1_Connection_Name')]", "location": "[parameters('logicAppLocation')]", "properties": { "api": { "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters(

Azure Logic App with SharePoint Connection

自古美人都是妖i 提交于 2020-12-13 03:05:20
问题 I am creating my first logic app which connects to SharePoint and adds entries into some sharepoint list. Whenever I create a SharePoint Connection it adds below resource to my logic app. { "type": "MICROSOFT.WEB/CONNECTIONS", "apiVersion": "2018-07-01-preview", "name": "[parameters('sharepointonline_1_Connection_Name')]", "location": "[parameters('logicAppLocation')]", "properties": { "api": { "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters(

creating PowerShell custom objects

梦想的初衷 提交于 2020-12-05 05:26:29
问题 I created a custom object in PowerShell. I was able to solve the problem I wanted to solve. I wanted to have an object with two columns, one for the site collection, one for the email. However, I am wondering if there is an easier solution. Do you have any suggestions? Here is my code: $cred = Get-Credential Connect-PnPOnline "https://tenant.sharepoint.com" -Credentials $cred $SiteCollections = Get-PnPTenantSite $object = @() foreach ($SiteCollection in $SiteCollections) { Connect-PnPOnline

iterate a sharepoint list

最后都变了- 提交于 2020-12-01 11:00:16
问题 In code how can I access a list e.g "MyList" in sharepoint, then iterate through this list items and get the value of a particular column on that list e.g the "URL" column? 回答1: To retrieve all items from a list and iterate through each one, the best solution would be as follows (assuming that this code is run as part of a feature): public override void FeatureActivated(SPFeatureReceiverProperties properties) { using(SPSite site = properties.Feature.Parent as SPSite) { SPList list = site

iterate a sharepoint list

那年仲夏 提交于 2020-12-01 10:58:46
问题 In code how can I access a list e.g "MyList" in sharepoint, then iterate through this list items and get the value of a particular column on that list e.g the "URL" column? 回答1: To retrieve all items from a list and iterate through each one, the best solution would be as follows (assuming that this code is run as part of a feature): public override void FeatureActivated(SPFeatureReceiverProperties properties) { using(SPSite site = properties.Feature.Parent as SPSite) { SPList list = site