graph
4 TopicsGraph Get SPO Webpart Information
I started a Graph request against a SPO site, trying to get detailed information about the integrated webparts. Graph Call was GET https://graph.microsoft.com/beta/sites/{site id}/pages/{page id} I assumed a response like the Microsoft Docs shows: https://learn.microsoft.com/en-us/graph/api/sitepage-get?view=graph-rest-beta&tabs=http But all webparts where shown only like this: "webParts": [ { "type": "544c1372-7e5a-49ec-8db6-812f76c375f2", "data": { "id": "544c1372-7e5a-49ec-8db6-812f76c375f2", "instanceId": "5feff54a-69c4-4795-93d2-ab74501c3c6f" } } How do I get an response like microsoft docs are showing? I want to provision SPO pages with pre-configured webparts through SiteScripts. Any ideas?559Views0likes0CommentsUpdate Group SharePoint Custom Field Collums after Fileupload with REST Graph API in Javascript
Hi, I've made an upload with Graph with the following JS code: async function uploadSingleFileMetaToSharepoint(file, name, metaData, groupId, graphAccessToken) { //console.log(file, name, metaData, groupId); //TODO get Filepath from config of App let pathToFiles = 'General' let apiurl = msgraph + `/groups/${groupId}/drive/root:/${pathToFiles}/${name}:/content`; if (debug) { console.log("uploading File: ", file); console.log(`API-URL: ${apiurl}`); } let header = { 'Authorization': graphAccessToken, } let body = file; //TODO catch errors let result = await fetch(apiurl, { "method": 'PUT', "headers": header, "body": body }); if (!result.ok) { console.error("upload file to sharepoint failed"); return } let res = await result.json(); //console.log(res); if (res === undefined || res.id === undefined) {console.error("Die DAtei wurde nicht hochgeladen"); return;} /... } which is working fine. But now i'm struggling to fill the values of the collumns from sharepoint : Does anybody know how to approach this?Solved1.5KViews0likes1CommentSend an email from SPFx client-side webpart without exchange online
Hello All, We're trying to build an spfx client-side webpart which should send a confirmation email to the user logged in (CC'in a mailbox) on a button click. I have tried Graph Api and pnp.js, and they both work great on my personal tenant where exchange online is enabled. But on our company prod tenant we do not have exchange online enabled. Any idea if GraphApi/PnP.js has a dependency on enabling exchange online to send email. Thank you all !Solved9.7KViews0likes8Comments