Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sphttpclient]

The tag has no usage guidance.

1
vote
1answer
77 views

Update List Item SPfx not working

Below is the code, which is not working, shows below error An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected. const body: string = ...
0
votes
2answers
162 views

'.get' undefined on 'this.context.SPHttpClient'

I am new to SharePoint and I am having trouble making API calls. child component below: import * as React from 'react'; import styles from './HelloWorld.module.scss'; import { IHelloWorldProps } ...
2
votes
1answer
96 views

Send an email with SPHttpClient

I'm working on a web part for SharePoint 2016 on-prem and I want to send an email from the current user. I cannot use @pnp/sp library as it's not supported with TypeScript 2.2.2 and I'm unable to ...
0
votes
1answer
149 views

Uncaught Type Error: Cannot read property 'post' of undefined

The below is my code import * as React from 'react'; import styles from './PostTest.module.scss'; import { IPostTestProps } from './IPostTestProps'; import { escape } from '@microsoft/sp-lodash-...