sending file to onederive from netsuite using suit...
# ask-stanley-ai
a
sending file to onederive from netsuite using suitescript
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To send a file from NetSuite to OneDrive using SuiteScript, you would need to use the REST APIs provided by both systems. However, there are some challenges to consider. OneDrive file creation expects raw binary to be sent over the network, which is a bit unusual. SuiteScript, on the other hand, is not able to send a raw octet stream. One possible solution is to use a third-party intermediary, like Azure Functions, AWS Lambda, or Google Cloud Functions, to convert the file from base64 (which is how NetSuite stores files) to binary, which can then be sent to OneDrive. Another solution is to use a built-for-NetSuite SuiteApp like eXtendFiles, which supports OneDrive integration. This SuiteApp uses token-based authentication and webhooks to integrate with OneDrive. It can migrate PDFs created and sent from NetSuite over to OneDrive on a scheduled basis. Every file that you upload to your cloud storage is then represented by an unlocked, NetSuite custom record so you can add your own metadata, run searches, build workflows, etc. Please note that you will need to read the documentation for both NetSuite and OneDrive APIs to understand how to use them for your specific use case.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826979876
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826480329
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826170683
Please provide your feedback on this answer.