How to export an event program?

Dear All

I have created an event program using DHIS2 2.29.
Then I export this program using “Metadata Export with Dependencies”.
Now I have the promme exported as XML and Json. but i dont know how to import it for use on another DHIS2 platform.
is there anyone who can tell me how to do this.

Best Regars

Hey @elmoujarrade,

Thanks for your question! If you exported the file from import/export app - metadata export with dependencies page, you can import it using the same app, metadata import page.

If you are using the API, you can just POST the content of that file to the /metadata endpoint.

Hope this helps,

The Caveat being to watch out for “default” metadata if you’re importing into a new version of DHIS2, @elmoujarrade . I think 2.29 was “pre-standardization” of the default metadata but please correct me if I’m wrong @Gintare.

Yes, that is correct, you might run into conflicts related to the default metadata. Another point is that import might not work if you are importing to an instance with a higher version of DHIS2. In that case, I would recommend to first upgrade the instance A, so that the metadata is migrated and has the same format.