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, ...
Unanswered

How to import .mpp file(microsoft project plan) into D365fo Using x++ code.

(3) ShareShare
ReportReport
Posted on by 950
Hi all,
 
I have .mpp (microsoft project plan) file with me and i want to import the same into d365fo using code.
Let me know if you hav any suggestions.
 
Thank you in advance
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,926 Most Valuable Professional on at
    What should happen when you import it? Should it be just attached to a record, or do you want to somehow interpret the data inside and act on it?
  • Raj Borad Profile Picture
    1,428 on at
    Hi @Shaik146,
     
    First clarify your goal: if the intention is only to attach the file to a record (e.g., to a project in Project Management and Accounting), you can use the document handling framework ('DocuRef', 'DocuValue').
     
    However, if you want to extract and act on data (like tasks, timelines, resources), you’ll need to parse the '.mpp' file. Since '.mpp' is a binary format, FO alone can not interpret it—you’d likely need an external service to extract data and then call a custom D365FO service to import it.
     
    Do you want to extract task/resource data or only attach the file?
     
     
  • TestBot Profile Picture
    950 on at
     
    I want to process the data in the mpp file like we process excel files though import code using x++ into d365fo .similarly i want to insert the rows in the mpp file(that contains resources,tasks,timelines etc ) to a table(custom or standard).
     
    Raj
    Can you pl elaborate on external service as mentioned in the second way of approach? as i want to extract the data in the mpp file
  • Martin Dráb Profile Picture
    237,926 Most Valuable Professional on at
    Okay, so your key problem is actually finding a way how to parse the file, interpret the data and extract what you're interested in. There is     Microsoft.Office.Interop.MSProject.dll that you could use for this purpose (Application is the class to begin with), although I wouldn't be surprised if you couldn§t use it directly inside F&O.
     
    Anyway, I'd forgot F&O for now. I would create a C# console application and build a proof of concept verifying that I'm able to extract the data I need. If not, making other steps would be a waste of time. When the key question is answered, I would check if I can use the library it in F&O, Azure function or so.
  • TestBot Profile Picture
    950 on at
    Hi Martin,
     
    Can we convert the Mpp file using fileupload to binary stream(Base64) in d365fo using x++.?
     
     
  • Martin Dráb Profile Picture
    237,926 Most Valuable Professional on at
    Yes, you can, althought it's doesn't address your problem.
     
    1. Yes, you can upload the file.
    2. All files are actually bytes of data and can be read through data streams.
    3. And you can convert bytes to a string with Base64, which is useful, for example, when you need to transfer binary data though a text-based protocol. In your case, I see no reason for using Base64. You need the actual data file, therefore you'd need to decode the string again to get the data.

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 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans