Skip to main content

Notifications

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 171
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
    Martin Dráb 230,836 Most Valuable Professional on at
    Store .TXT file to blob storage, Notify the business event of the saved URL in D365FO
    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).
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    Store .TXT file to blob storage, Notify the business event of the saved URL in D365FO
  • CU21091228-0 Profile Picture
    CU21091228-0 171 on at
    Store .TXT file to blob storage, Notify the business event of the saved URL in D365FO
     
    Using above link file has been downloaded in D365FO folder.
    But my requirement is file should uploaded in blob storage instead of download.
  • Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    Store .TXT file to blob storage, Notify the business event of the saved URL in D365FO
    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans