Now, in this blog we will see how to access SharePoint online data.
In this example, we will resize SharePoint Online image by using the Microsoft Graph API via SharePoint using the /_api/v2.0.
We need to specify the size; large, small, and medium; in the request URL to resize the image that would give us the result in the fixed predefined resolutions.
The URL looks like below:
Generally, we have a common default site for all environments than you can call API as below:
Above example is for the Common default site, however, if we have different SharePoint Sites for different Environments, we can call the API as below:
The fixed sizes clause (Large, small, medium) can be replaced by custom size (it could be anything in pixels) with the following format /c1920x1080 where the number after the c is the width and the number after x is the height. Please see below example.
Now, it’s time to access the above API using postman and resize SharePoint Online image.
The “access_token” value, is what we got from the previous part of this blog.
Now, we can use this ”access_token” value in the header configuration parameter as the “Authorization” value.
Note: that there is a space in between Bearer and Access token value.
After the following previous steps correctly in Postman, it would show as below image.
If you are using this API via code then resized image value would be a Byte array than you can use for further process.
Hope this helps!
ATM Inspection PowerApp to ease ATM inspection and report generation process.
Insert data into Many-to-Many relationship in Dynamics CRM very easily & quickly, using the Drag and drop listbox.
Comply your Lead, Contact, and User entities of D365 CRM with GDPR compliance using the GDPR add-on.
Create a personal / system view in Dynamics CRM with all the fields on the form/s which you select for a particular entity using the View Creator.
© All Rights Reserved. Inkey IT Solutions Pvt. Ltd. 2022