- The article discusses a mistake in the SaveField method of the TST2_OneDriveERDest_OneDrive class related to parameters that has been fixed.
- The post explains how to send files to OneDrive by implementing functionality in a separate class for reusability.
- Two classes are created: one for deserializing the token response and another for API communication.
- The deserialization class, TST2_OneDriveApi_RefreshTokenJson, extracts the token value from the JSON response.
- The communication class, TST2_OneDriveAPI, includes methods to retrieve the token and send files to OneDrive.
- The getToken method retrieves the access token by sending a request to the Microsoft login endpoint.
- The sendFile method sends a file from a stream to OneDrive using the access token for authorization.
- Overall, the article provides a detailed guide on how to integrate file sending functionality with OneDrive using Dynamics 365.
Registered users can view the full text for FREE!
Sign In Now!