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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Store .TXT file to blob storage, Notify the business event of the saved URL

(1) ShareShare
ReportReport
Posted on by 230
Hi Team,
I have the blow requirement.
1. Create new .TXT file through x++ code.
2. Store newly created .TXT file to blob storage.
3. The downloaded URL is notified to an external service (Power Automate, etc.) by a business event.
 
Please let me know how to do above approach mean which class need to be create. EX: Service class
  • Martin Dráb Profile Picture
    241,656 Most Valuable Professional on at
    As you noticed, you have three separate pieces, therefore deal with them one by one. In this thread, let's focus just on the first one and ignore the rest. You can later create more threads for other problems, if needed. (Please do it in https://community.dynamics.com/forums/thread/?discussionforumid=ee014d7f-7bd3-4e11-9b1b-53866a77f4bc&page=1, rather than the AX forum).
    How you should create a text file depends on the input, on the type of the text file and other requirements.
    For example, you could use the electronic reporting to create the text file from F&O data (without coding).
    Another example - if need to use custom code and you want to create a file with delimited value, you can utilize CommaTextIo (or CommaTextStreamIo) class.
    If you need a more specific suggestion, please tell us more about your requirements.
  • CU21091228-0 Profile Picture
    230 on at
     
    Using above link file has been downloaded in D365FO folder.
    But my requirement is file should uploaded in blob storage instead of download.
  • Mohit Rampal Profile Picture
    12,573 Moderator on at
  • Martin Dráb Profile Picture
    241,656 Most Valuable Professional on at
    It sounds like the first step is covered.
     
    To upload data to Azure blob storage, you need to use Azure storage API. Look at Get started with Azure Blob Storage and .NET (https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-dotnet-get-started?tabs=azure-ad) and pages linked from there (e.g. Upload blobs).

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 239 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 221

#3
Subra Profile Picture

Subra 166 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans