Git Product home page Git Product logo

sp-dev-samples's Introduction

page_type products languages extensions
sample
office-sp
aspx
contentType createdDate
samples
8/10/2016 10:44:23 AM

SharePoint code samples for add-ins, webhooks and other APIs

This repo contains the samples around add-in/app model, webhooks and other related APIs.

Note. If you are looking for SharePoint Framework client-side web part samples, those are located in different repository.

Additional resources

Using the samples

To build and start using these projects, you'll need to clone and build the projects.

Clone this repo by executing the following command in your console:

git clone https://github.com/SharePoint/sp-dev-samples.git

Navigate to the cloned repo folder which should be the same as the repo name:

cd sp-dev-samples

Contributions

These samples are direct from the feature teams and SharePoint PnP core team (http://aka.ms/SharePointPnP). We welcome your input on issues and suggestions for new samples.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

sp-dev-samples's People

Contributors

aboredman avatar adriancampos avatar chakkaradeep avatar estruyf avatar giuleon avatar jansenbe avatar nokafor avatar paolopia avatar patrick-rodgers avatar vesajuvonen avatar waldekmastykarz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sp-dev-samples's Issues

Capturing deleted items

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

[ ] Question
[ ] Bug
[x] Enhancement

Expected or Desired Behavior

Nothing from the recycle bin exposes a webhook to capture when something arrives there. And the pattern utilized CSOM to query the item. But if you delete a folder with a hundred items you have zero Traceability. The items just vanish

react-generic-app throws webpack unexpected token error on HelloWorld.module.css

Category

[ ] Question
[x] Bug
[ ] Enhancement

Expected or Desired Behavior

Trying to run react-generic-app after initial download and install of npm packages.

Observed Behavior

Error - [webpack] 'dist':
./lib/components/HelloWorld/HelloWorld.module.css
Module parse failed: C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\lib\components\HelloWorld\HelloWorld.module.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
at Parser.pp$4.raise (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock. (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\SpannbN\Documents\Visual Studio 2015\Projects\react-generic-app2\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
@ ./lib/components/HelloWorld/HelloWorld.module.scss.js 4:0-34

Steps to Reproduce

Downloaded react-generic-app, ran 'npm install', ran 'gulp serve'

DefaultButton class not available from Fabric UI in this version

Category

[ x ] Question
[ ] Bug
[ ] Enhancement

First off thanks for creating this sample! I come from the .NET world and have been experimenting with this sample as part of my "conversion". I've noticed that the included office-ui-fabric-react version does not support some components, for instance DefaultButton
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';

I have tried doing npm update office-ui-fabric-react --save in the project and I am getting a whole load of compilation errors like this one when running gulp:
Error - typescript - node_modules\office-ui-fabric-react\lib\common\BaseComponent.d.ts(29,24): error TS1005: '=' expected.

As far as I can tell it's trying to compile the new office-ui-fabric-react library and not succeeding. Why would that be? Is there an incompatibility between webpack/react and the newest office-ui-fabric-react version? If so how could I work around this? I have only just begun to understand the connection between webpack and typescript and babel and whatnot so any conceptual help is welcome.

Gulp serve error about office ui, cant see the webparts

Category

[ ] Question
[ X] Bug
[ ] Enhancement

Expected or Desired Behavior

The html page shall show, instead i get white page

Observed Behavior

I get a white page and tones of error during gulp serve

  • I have node v6.11.4
  • npm 5.4.2
  • Windows 10
  • VSCode latest version ran as Admin

`PS C:\DEV\SPFX\TypescriptWPSP\sp-dev-samples> cd "C:\DEV\SPFX\TypescriptWPSP\sp-dev-samples\Samples\react-generic-app"
PS C:\DEV\SPFX\TypescriptWPSP\sp-dev-samples\Samples\react-generic-app> npm install
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 114 packages in 19.1s

╭─────────────────────────────────────╮
│ │
│ Update available 5.4.2 → 5.5.1 │
│ Run npm i -g npm to update │
│ │
╰─────────────────────────────────────╯

PS C:\DEV\SPFX\TypescriptWPSP\sp-dev-samples\Samples\react-generic-app> gulp serve
[21:03:24] Using gulpfile C:\DEV\SPFX\TypescriptWPSP\sp-dev-samples\Samples\react-generic-app\gulpfile.js
[21:03:24] Starting gulp
[21:03:24] Starting 'serve'...
[21:03:24] Starting subtask 'serve'...
[21:03:24] Finished subtask 'serve' after 181 ms
[21:03:24] Starting subtask 'pre-copy'...
[21:03:24] Finished subtask 'pre-copy' after 10 ms
[21:03:24] Starting subtask 'sass'...
[21:03:25] Server started http://localhost:4321
[21:03:25] LiveReload started on port 35729
[21:03:25] Opening http://localhost:4321/index.html using the default OS app
Request: '/index.html'
[21:03:25] Finished subtask 'sass' after 1.28 s
[21:03:25] Starting subtask 'typescript'...
[21:03:25] [typescript] TypeScript version: 2.4.2
[21:03:26] Starting subtask 'text'...
[21:03:26] Starting subtask 'api-extractor'...
[21:03:26] Finished subtask 'api-extractor' after 16 ms
Request: '/node_modules/react/dist/react.js'
Request: '/node_modules/react-dom/dist/react-dom.js'
Request: '/dist/react-app.js'
[21:03:26] Finished subtask 'text' after 163 ms
[21:03:29] Error - typescript - node_modules@uifabric\utilities\lib\Customizer.d.ts(21,54): error TS2559: Type 'ICustomizerProps' has no properties in common with type 'IBaseProps'
.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Calendar\CalendarDay.d.ts(29,55): error TS2559: Type 'ICalendarDayProps' has no properties in comm
on with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\ColorPicker\ColorPicker.d.ts(7,55): error TS2559: Type 'IColorPickerProps' has no properties in co
mmon with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DetailsList\DetailsHeader.d.ts(41,57): error TS2559: Type 'IDetailsHeaderProps' has no properties
in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DetailsList\DetailsRow.d.ts(43,54): error TS2559: Type 'IDetailsRowProps' has no properties in com
mon with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Dialog\DialogContent.d.ts(5,57): error TS2559: Type 'IDialogContentProps' has no properties in com
mon with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardActions.d.ts(2,63): error TS2559: Type 'IDocumentCardActionsProps' has no
properties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardActivity.d.ts(2,64): error TS2559: Type 'IDocumentCardActivityProps' has
no properties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardLocation.d.ts(2,64): error TS2559: Type 'IDocumentCardLocationProps' has
no properties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardPreview.d.ts(2,63): error TS2559: Type 'IDocumentCardPreviewProps' has no
properties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardTitle.d.ts(6,61): error TS2559: Type 'IDocumentCardTitleProps' has no pro
perties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Fabric\Fabric.d.ts(5,50): error TS2559: Type 'HTMLProps' has no properties in comm
on with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Layer\LayerHost.d.ts(2,53): error TS2559: Type 'HTMLProps' has no properties in commo
n with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Pivot\PivotItem.d.ts(2,53): error TS2559: Type 'IPivotItemProps' has no properties in common with
type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\AutoFill\BaseAutoFill.d.ts(5,56): error TS2559: Type 'IBaseAutoFillProps' has no propertie
s in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\BasePicker.d.ts(17,88): error TS2559: Type 'P' has no properties in common with type 'IBas
eProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\Suggestions\Suggestions.d.ts(3,62): error TS2559: Type 'ISuggestionItemProps' has no pr
operties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\Suggestions\Suggestions.d.ts(6,58): error TS2559: Type 'ISuggestionsProps' has no prope
rties in common with type 'IBaseProps'.
[21:03:29] Error - typescript - node_modules\office-ui-fabric-react\lib\utilities\selection\SelectionZone.d.ts(13,57): error TS2559: Type 'ISelectionZoneProps' has no properties in
common with type 'IBaseProps'.
Request: '/dist/react-app.js'
[21:03:29] Error - 'typescript' sub task errored after 3.51 s
TypeScript error(s) occurred.
(node:932) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: options.message.replace is not a function
[21:04:18] Server stopped`

Thanks you !

Is it possible to supress webhooks?

[X ] Question
[ ] Bug
[X ] Enhancement

Expected or Desired Behavior

Id like to be able to create a subscription to a sharepoint list so as to recieve notifications from it, however i do not want to recieve notifications from webhooks when i create/update/delete an item on that list. I would like to tell the webhook subscription to be supressed or ignored sending a postback to my api.

Observed Behavior

My api writes to sharepoint, and webhooks posts back to my api. I only webhook to run when a list is changed at sharepoint end. Not when my api makes changes to sharepoint.

If microsoft answer is (sorry this is defaultbehavior)
Then please take this as suggestion

Suggestion: add additional property onto graph client for sharepoint so as to be able to supress subscription webhook for that individual post.

Something like { 'suppress_payload' : true } to be included in the post payload to sharepoint.

I hope this makes sense?

I just dont want to receieve a webhook notification that my api has to process for every CUD action i take as, i already know about the action... my api did the action, so i dont need an notice on something my api did.

Cheers

When i did as per the steps to run the react-generic-app for modern app development

it does return this error

λ gulp serve
[19:41:55] Using gulpfile C:\NTUC\UI\sp-dev-samples\Samples\react-generic-app\gulpfile.js
[19:41:55] Starting gulp
[19:41:55] Starting 'serve'...
[19:41:55] Starting subtask 'serve'...
[19:41:55] Finished subtask 'serve' after 172 ms
[19:41:55] Starting subtask 'pre-copy'...
[19:41:55] Finished subtask 'pre-copy' after 7.69 ms
[19:41:55] Starting subtask 'sass'...
(node:26476) ExperimentalWarning: The http2 module is an experimental API.
[19:41:55] Server started http://localhost:4321
[19:41:55] LiveReload started on port 35729
[19:41:56] Opening http://localhost:4321/index.html using the default OS app
Request: '/index.html'
[19:41:56] Finished subtask 'sass' after 870 ms
[19:41:56] Starting subtask 'typescript'...
[19:41:56] [typescript] TypeScript version: 2.4.2
[19:41:56] Starting subtask 'text'...
[19:41:56] Starting subtask 'api-extractor'...
[19:41:56] Finished subtask 'api-extractor' after 987 μs
Request: '/node_modules/react/dist/react.js'
Request: '/node_modules/react-dom/dist/react-dom.js'
Request: '/dist/react-app.js'
[19:41:56] Finished subtask 'text' after 14 ms
[19:41:58] Error - typescript - node_modules@uifabric\utilities\lib\Customizer.d.ts(21,54): error TS2559: Type 'ICustomizerProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Calendar\CalendarDay.d.ts(29,55): error TS2559: Type 'ICalendarDayProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\ColorPicker\ColorPicker.d.ts(7,55): error TS2559: Type 'IColorPickerProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DetailsList\DetailsHeader.d.ts(41,57): error TS2559: Type 'IDetailsHeaderProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DetailsList\DetailsRow.d.ts(43,54): error TS2559: Type 'IDetailsRowProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Dialog\DialogContent.d.ts(5,57): error TS2559: Type 'IDialogContentProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardActions.d.ts(2,63): error TS2559: Type 'IDocumentCardActionsProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardActivity.d.ts(2,64): error TS2559: Type 'IDocumentCardActivityProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardLocation.d.ts(2,64): error TS2559: Type 'IDocumentCardLocationProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardPreview.d.ts(2,63): error TS2559: Type 'IDocumentCardPreviewProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\DocumentCard\DocumentCardTitle.d.ts(6,61): error TS2559: Type 'IDocumentCardTitleProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Fabric\Fabric.d.ts(5,50): error TS2559: Type 'HTMLProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Layer\LayerHost.d.ts(2,53): error TS2559: Type 'HTMLProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\Pivot\PivotItem.d.ts(2,53): error TS2559: Type 'IPivotItemProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\AutoFill\BaseAutoFill.d.ts(5,56): error TS2559: Type 'IBaseAutoFillProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\BasePicker.d.ts(17,88): error TS2559: Type 'P' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\Suggestions\Suggestions.d.ts(3,62): error TS2559: Type 'ISuggestionItemProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\components\pickers\Suggestions\Suggestions.d.ts(6,58): error TS2559: Type 'ISuggestionsProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - typescript - node_modules\office-ui-fabric-react\lib\utilities\selection\SelectionZone.d.ts(13,57): error TS2559: Type 'ISelectionZoneProps' has no properties in common with type 'IBaseProps'.
[19:41:58] Error - 'typescript' sub task errored after 2.71 s
TypeScript error(s) occurred.
(node:26476) UnhandledPromiseRejectionWarning: TypeError: options.message.replace is not a function
at Object.module.exports.mapToWin8 (C:\NTUC\UI\sp-dev-samples\Samples\react-generic-app\node_modules\node-notifier\lib\utils.js:359:33)
at WindowsToaster.notify (C:\NTUC\UI\sp-dev-samples\Samples\react-generic-app\node_modules\node-notifier\notifiers\toaster.js:88:19)
at C:\NTUC\UI\sp-dev-samples\Samples\react-generic-app\node_modules@microsoft\gulp-core-build\lib\index.js:213:46
at
at process._tickCallback (internal/process/next_tick.js:160:7)
(node:26476) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:26476) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Request: '/index.html'
Request: '/node_modules/react/dist/react.js'
Request: '/node_modules/react-dom/dist/react-dom.js'
Request: '/dist/react-app.js'
Request: '/dist/react-app.js'

Unable to load project from solution in Visual Studio 2015

Category

[ ] Question
[ X ] Bug
[ ] Enhancement

Expected or Desired Behavior

Open the Solution and it's Projects in Visual Studio 2015 Community.

Observed Behavior

The project SharePoint.WebHooks.MVC does not load because "is not supported".

Steps to Reproduce

Under Windows 10 Anniversary Update completely patched.
Git clone the complete repo using Visual Studio option from GitHub.
Using the Visual Studio 2015 Community, open the solution SharePoint.WebHooks.

bug1

WebHooks.NodeJS should provide an example of config.json

Category

[ X ] Question
[ ] Bug
[ X ] Enhancement

What is the structure and information to put in this file?

Following readme / setup guide
https://github.com/SharePoint/sp-dev-samples/tree/master/Samples/WebHooks.Nodejs

config.json file probably will contain sensitive information such as passwords, so its set to be excluded via .gitignore, but we have no way of knowing the information supposed to be in this file, as they aren't documented.
There should be a config.sample.json file provided, as PnP JS does, or a config.json containing the supported structure with empty or sample values

The SAS URL for the cloud storage account is not specified.

publishing the webhook.mvcweb app results in the following error : System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.InvalidOperationException: The SAS URL for the cloud storage account is not specified.
Use the environment variable 'DIAGNOSTICS_AZUREBLOBCONTAINERSASURL' to define it.
at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.RefreshConfig()
--- End of inner exception stack trace ---""

Category

[ ] Bug

SCSS doesn't take effect

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

[ ] Question
[x ] Bug
[ ] Enhancement

Expected or Desired Behavior

HelloWorld.module.scss should affect the style.

Observed Behavior

css in HelloWorld.module.scss doesn't change the final style.

Steps to Reproduce

  • Clone repository
  • Move to sample folder
  • Run 'npm install'
  • Run 'gulp serve'

Questions about code

Category

[ x] Question
[ ] Bug
[ ] Enhancement

I was checking the code and I found something I couldnt understand, can you please explain these sections, thanks in advance.

What is spoppe.com or windows-ppe.net?
if (new Uri(url).DnsSafeHost.Contains("spoppe.com"))
{
cc = am.GetAppOnlyAuthenticatedContext(url, realm, clientId, clientSecret, acsHostUrl: "windows-ppe.net", globalEndPointPrefix: "login");
}
else
{
cc = am.GetAppOnlyAuthenticatedContext(url, clientId, clientSecret);
}

webhook for list added event

Category

[ ] Question

Expected or Desired Behavior

Does SharePoint online supports webhooks for list/library added event? I've a requirement to add content type to library on creation and thought of using webhooks. If not is there any other supported way?

Observed Behavior

NA

Steps to Reproduce

NA

@microsoft/load-theme-styles error cannot find name 'undefined'

Category

[ ] Question
[ ] Bug
[ ] Enhancement

Just cloned this repo as per suggestion in this thread SharePoint/sp-dev-docs#600 and got this following error message during gulp serve:
[01:49:13] Error - typescript - node_modules\@microsoft\load-themed-styles\lib\index.d.ts(42,133): error TS2304: Cannot find name 'undefined'. [01:49:13] Error - typescript - node_modules\@microsoft\load-themed-styles\lib\index.d.ts(57,51): error TS2304: Cannot find name 'undefined'. [01:49:13] Error - typescript - node_modules\@microsoft\load-themed-styles\lib\index.d.ts(68,53): error TS2304: Cannot find name 'undefined'. [01:49:13] Error - typescript - node_modules\@microsoft\load-themed-styles\lib\index.d.ts(68,74): error TS2304: Cannot find name 'undefined'.

I tried to update the index.d.ts within @microsoft/load-themed-styles file and remove all the undefined and seems to works fine.. Also currently we loads up the localhost in http instead of https, is there any way to upgrade this to https://localhost ?

Any thoughts @waldekmastykarz ?

[react-generic-app] Cannot find "require" after gulp nuke -> gulp build

Category

[ ] Question
[x] Bug
[ ] Enhancement

Observed Behavior

After cloning the repository, and running gulp serve, the webparts load correctly.
However, after running gulp nuke, I can no longer build the project.

Running gulp build produces the following output:

[16:03:50] Using gulpfile C:\Projects\_Testing\react-generic-app\gulpfile.js
[16:03:50] Starting gulp
[16:03:50] Starting 'build'...
[16:03:50] Starting subtask 'pre-copy'...
[16:03:50] Finished subtask 'pre-copy' after 7.53 ms
[16:03:50] Starting subtask 'sass'...
[16:03:51] Finished subtask 'sass' after 719 ms
[16:03:51] Starting subtask 'tslint'...
[16:03:51] Starting subtask 'typescript'...
[16:03:51] Starting subtask 'text'...
[16:03:51] Finished subtask 'text' after 8.29 ms
[16:03:53] Error - typescript - src\components\HelloWorld\HelloWorld.module.scss.ts(1,1): error TS2304: Cannot find name 'require'.
[16:03:53] Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
[16:03:53] Finished subtask 'tslint' after 1.76 s
[16:03:53] Error - 'typescript' sub task errored after 1.76 s
 "TypeScript error(s) occurred."
[16:03:53] 'build' errored after 2.5 s
[16:03:53]
[16:03:53] ==================[ Finished ]==================
Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
Error - typescript - src\components\HelloWorld\HelloWorld.module.scss.ts(1,1): error TS2304: Cannot find name 'require'.
Error - 'typescript' sub task errored after 1.76 s
 "TypeScript error(s) occurred."
[16:03:54] Project react-app version: 1.0.0
[16:03:54] Build tools version: 0.11.1
[16:03:54] Node version: v6.9.1
[16:03:54] Total duration: 5.45 s
[16:03:54] Task warnings: 1
Warning - tslint - src\index.tsx(1,13): error no-unused-variable: Unused import: 'React'
[16:03:54] Task errors: 2

Steps to Reproduce

  1. Clone the repository
  2. npm install
  3. gulp nuke
  4. gulp build

@VesaJuvonen

react-generic-app - "Path must be a string. Received null"

Category

[ ] Question
[ X ] Bug
[ ] Enhancement

Expected or Desired Behavior

Expected the sample to be built, but received the path error.

Observed Behavior

Receive:
Error - Unknown
Path must be a string. Received null

Steps to Reproduce

Clone repo, Run 'npm install', Run 'gulp serve' or 'gulp'

Here's the full output with version numbers:

[19:49:39] Error - Unknown
Path must be a string. Received null
[19:49:40] ==================[ Finished ]==================
[19:49:40] Project react-app version: 1.0.0
[19:49:40] Build tools version: 0.11.1
[19:49:40] Node version: v6.9.3
[19:49:40] Total duration: 4.01 s
[19:49:40] Task errors: 2

WebHooks.List.AzureAD sample upgrade to 4.6 throws compile errors

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

[ ] Question
[ x] Bug
[ ] Enhancement

Expected or Desired Behavior

Afthe application should work with 4.6 similar to 4.5

Observed Behavior

receiving OfficeDevPnP.Core not found or one its dependencies

Steps to Reproduce

Upgrade the sample project to 4.6 , compile and run.

Does not work with Visual Studio 2022

Are these examples still relevant for the latest VIsual Studio? The assemblies being referenced are out of date and many seem deprecated. I am also still unable to open the projects using the latest Visual Studio. What I would like to see is updated examples that reflect the latest language (e.g. dotnet 6)

I would like to use webhooks in the Azure Function v3 c# application I am using. But am not sure these examples are of much use?

I found this from official Microsoft documentation found at:
https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/webhooks-reference-implementation

Steps to create react-generic-app

Category

[x ] Question
[ ] Bug
[ ] Enhancement

Hi , It's an interesting approach but if it's possible to provide us the steps you procure to create the react-generic-app .

Best regards

Submission Guidelines

Error from SharePoint Online when I try to create a new webhook

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

[ ] Question
[X ] Bug
[ ] Enhancement

Expected or Desired Behavior

I wanted to add a new subscription to a list and I expected to be added and appeared in the webhook list.

Observed Behavior

When I try to add a new webhook I received an internal server error from SharePoint. I can see that it doesn't arrive to send the post from SharePoint to the the api webhook when it tries to create it.

Steps to Reproduce

Just click on any list and add a new webhook.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.