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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Attach file in D365 FO...
Finance forum

Attach file in D365 FO using JSON based custom service

(0) ShareShare
ReportReport
Posted on by 49

Hi, 
I've created a JSON custom service that is consumed by a mobile application. The service attaches a document to the record in D365. Currently the file is passed as base64 encoded string. Due to large file size, the encoded string is very large and this slows down the process. 

Is there any alternative to this approach?

Is there a way to pass the file as stream in the service parameters?

Thanks

I have the same question (0)
  • Martin Dráb Profile Picture
    240,540 Most Valuable Professional on at

    I successfully built a proof of concept of a service accepting a data stream, but it was a SOAP service in AX 2012. I've never tried it with a JSON endpoint in F&O - but you can easily give it a try.

    You surely can think about alternatives, such as uploading the file to a blob storage, passing a link through the web service and letting F&O to download the file from there.

    But if the file is large, it'll always take some time. If "this slows down the process" means that user interaction is blocked until the upload it complete, consider doing the whole thing asynchronously in background.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans