Questions tagged [aadhttpclient]
4 questions
0
votes
0 answers
delete operation example in AadHttpClient spfx
I am trying below code to delete item using spfx it also goes in success and give me alert but its not deleting item at backend in table
Does any one have idea what i am doing wrong in this code to delete item
deleteitem = (item: ISuggestionItem) =>…

Ashok
- 59
- 1
- 10
0
votes
0 answers
415 (Unsupported Media Type) post request spfx
I am working on application where need to write back to webapi, written below code where on post request passing in body like email ,username but when i write get below error POST unsupported media type i assume it is related to json but not sure…

Ashok
- 59
- 1
- 10
0
votes
2 answers
response in json [object object]
Below is my code to get response from webapi i am able to get results as count is showing right but it coming in [object object] format how to get proper json below is my line of code
const userList: ISuggestionItem[]=[];
…

Ashok
- 59
- 1
- 10
0
votes
3 answers
From Azure Function (secured by AAD), how to properly detect the caller (the end-user of SPFx WebPart) through the AadHttpClient?
Note:
Both Azure Function and the SPFx WebPart mentioned below are written in NodeJS/JavaScript. None of them are in C#.
I have an Azure Function (secured by AAD: App Registration) which is being called by AadHttpClient via SPFx WebPart on a…

夏期劇場
- 17,821
- 44
- 135
- 217