API Execution command for export and import package | Community
Skip to main content
New Participant
June 28, 2019
Solved

API Execution command for export and import package

  • June 28, 2019
  • 1 reply
  • 1923 views

Is there and API executable command for importing packages and exporting packages. I am looking for something like nl.execute command.

Thanks

Saurabh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kapilKochar

Hi Saurabh,

If you want to automate the package migration process based on API executable commands. you need to create one new schema and expose two methods for export and import  and then create JS to write logic for both functions

like for Import will be

     a. Saving incoming request in schema for tracking

     b.  Retrieve the filename and folder value

     c.  create XML object using above details

     d.  use xtk.builder.InstallPackage function to install that XML

If Using API is not mandatory then use below link to design workflow which will export the package directly.

How to export packages automatically

Hope this helps !

Thanks,

Kapil

1 reply

kapilKochar
kapilKocharAccepted solution
New Participant
July 5, 2019

Hi Saurabh,

If you want to automate the package migration process based on API executable commands. you need to create one new schema and expose two methods for export and import  and then create JS to write logic for both functions

like for Import will be

     a. Saving incoming request in schema for tracking

     b.  Retrieve the filename and folder value

     c.  create XML object using above details

     d.  use xtk.builder.InstallPackage function to install that XML

If Using API is not mandatory then use below link to design workflow which will export the package directly.

How to export packages automatically

Hope this helps !

Thanks,

Kapil