web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get "accessToken" in SharePoint REST services

(0) ShareShare
ReportReport
Posted on by

In aip

url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files/add(url='a.txt',overwrite=true)
method: POST
body: "Contents of file"
Headers:
    Authorization: "Bearer " + accessToken
    X-RequestDigest: form digest value
    content-length:length of post body

How get "accessToken" and "form digest value"

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    You have to do whole lot of C# code libraries to furnish adfs authentication piece, getting samlassertion, token, etc

    Good place to start: leandrob.com/.../request-a-token-from-adfs-using-ws-trust-from-ios-objective-c-iphone-ipad-android-java-node-js-or-any-platform-or-language

  • Suggested answer
    KARTHIKGOWTHAM@SUYATITECH Profile Picture
    175 on at

    Hi luthietho,

    1. You have register an app for the particular domain from which you want access your Sharepoint, get the clientId, client secret

    2. Use these to get the access token

    3. Then make the actual request.

    A detailed post on this can be found in this link: www.ktskumar.com/.../access-sharepoint-online-using-postman

    Please mark the answer, if it helps you

    Regards,

    Karthik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans