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

Import From Package API vs Import through UI

(0) ShareShare
ReportReport
Posted on by 30

Hi 

I am new to D365 FO and implementing integration to import Data into D365 based on the Import Project Definition

In the UI it seems, as you can select you Import Project and Click Run Project and then upload the file to import and start importing (import starts and ends with success or failure).

On the other hand testing ImportFromPackage API seems to be different, it requires you upload a zip file that contains the input and Manifest and PackageHeader files. 

Is there an API that can be used to basically mimic the UI behavior? I want the integration to only send a file and Import Project Name

Thanks,

Rah

I have the same question (0)
  • rah_barheyan Profile Picture
    30 on at

    After Further testing it looks like the ImportFromPackage is creating an new import package, which makes sense why Manifest and PackageHeader need to be supplied.

    docs.microsoft.com/.../data-management-api

    Is there a way to use the Package API and Import using existing Data Project defined in D365 rather than the above

  • Verified answer
    zhifeng Profile Picture
    on at

    Please check if  "Recurring integrations" is what you need. It is recommend to use Package API.

    docs.microsoft.com/.../recurring-integrations

  • rah_barheyan Profile Picture
    30 on at

    Thanks Kevin, this looks very promising. I have two questions.

    Is there a way to trigger the message processing dynamically instead of waiting on the schedule to pick it up?

    How can I get the the ExecutionId of the Import Project to get see if there are any errors?

    Edit: Import Project gets created with a timestamp, was hoping it gets created with the same id as the message, so is there a way to query the API to get Execution Id that was created as part of the message processing?

    [quote user="Kevin"]

    Please check if  "Recurring integrations" is what you need. It is recommend to use Package API.

    docs.microsoft.com/.../recurring-integrations

    [/quote]
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Recurring data jobs are scheduled and triggered by the D365 batch job. If you want to trigger the import from the caller system you should use the Data Package API.

  • rah_barheyan Profile Picture
    30 on at

    Thanks Nikolaos for your comment.

    For the Package API, I have to provide import definition, I want my integration to be dynamic, and allow the users to modify mapping fields in D365, and add extra fields in their input files, without having to update the code or the add complexity of defining a dynamic package in the integration.

    The scheduler seems to allow you to provide a csv,excel file to use with an existing Import Project, the only issue I am having is I can't trigger it immediately (I have to wait for the scheduler to pick it up it seems) and also I need to figure out how to get the execution id back from the scheduler when it creates the import job.

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

    You can schedule it to run every minute if you want to avoid waiting. What exactly do you need to achieve when you talk about getting the Execution id? What would you use it for? 

  • rah_barheyan Profile Picture
    30 on at

    I am trying to implement the an interface that takes file and send it to existing Import Project. The recurring integration seems to be what I need to use, I have to reduce the recurrence to every minute.

    Once the recurrence takes a DMF execution occur as result, Seems the execution contains the name of the recurrence but not the id of the message the recurrence processed so I built a logic handle that through OData

    once I get the execution id back after know the message is processed (with/without errors), I expose the errors to the users using the interface

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans