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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Custom File name in DMF Exported Package - D365FO

(0) ShareShare
ReportReport
Posted on by 2,032

Hi,

 Currently, when an entity is exported from D365FO as a package, there will be 3 files - Manifest, Header, and the data file which has the entity name as its file name.

Is it possible to change the file name while it is exported as package ?  

pastedimage1604918253477v1.png

I am using D365FO 10.0.12

Any leads on this would help me to investigate on this issue.

Regards,

Anitha.E

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    I guess it could be possible via development. Why would you want to change it?

    By the way, do you really have PU12, or 10.0.12 PU36?

  • AnithaEswaran Profile Picture
    2,032 on at

    Sorry. it is 10.0.12.

    I am processing bulk of files for export from logic apps.

    So while extracting the files , i am facing issue with the same name.  

  • Rachit Profile Picture
    4,015 User Group Leader on at

    Hi Anitha,

    What is the reasoning behind this modification? What would you like to rename it to??

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    I recommend trying to adjust your LogicApps.

  • AnithaEswaran Profile Picture
    2,032 on at

    I adjusted in logic apps by making it to process one file at a time.

    But it is time consuming when the files are more.  

    Thus planning to rename the file in D365FO

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi Rachit,

    I am processing bulk of files for export from logic apps.

    So while extracting the files , i am facing issue with the same name.  

    I tweaked logic apps to process one file at a time, but it is time consuming when there are more records.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    I think that it's possible to create a LogicApps that supports parallel processing even when you have the same file name inside each data package.

  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at

    I don't really understand what you mean by "processing bulk of files for export".

    Either way, I would not recommend doing this modification via extensions, even if it is technically possible. Any issues arising due to this modification will not be supported by Microsoft and such extensions will need rigorous regression testing when consuming one version updates.

    If you are finding limitations with logic apps then you can also try to use Azure functions.

  • skpaliwal Profile Picture
    on at

    Hi Anitha,

    I had similer requirement for one the integration where third party system was looking the specific file naming convention.
    Please find below sample code

    /// <summary>
    /// This class used for extension of DmfDataPopulation.
    /// </summary>
    [ExtensionOf(classStr(DmfDataPopulation))]
    final class NPCDmfDataPopulation_Extension
    {
        /// <summary>
        /// This method used for get blob contents and finally the custom logic will replace the file name by applying date time and counter to rename the file as an unique file name
        /// </summary>
        /// <param name = "_fileId">guid</param>
        /// <param name = "_localFilePath">str</param>
        /// <param name = "_category">str</param>
        public static void getBlobContents(guid _fileId, str _localFilePath, str _category)
        {
            VendParameters              vendParameters = VendParameters::find();
            MyFileCountTable            fileCount;
            str                         filePath = _localFilePath;

     

            select firstonly GenerationCount from fileCount order by RecId desc
                where fileCount.GenerationDate == today(); // get latest value from counter table

     

            str dateStr =  date2Str(today(),
                                    123,
                                    DateDay::Digits2,
                                    DateSeparator::None,
                                    DateMonth::Digits2,
                                    DateSeparator::None,
                                    DateYear::Digits4); //Use current date and time in file name

            filePath = strReplace(_localFilePath, '[data entity label]', strFmt("%1-%2%3", vendParameters.ExportFileName, dateStr, fileCount.GenerationCount));
            next getBlobContents(_fileId, filePath, _category);
        }

     

    } 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans