how to add multiple fragments in a Package | Community
Skip to main content
New Participant
January 23, 2025
Solved

how to add multiple fragments in a Package

  • January 23, 2025
  • 1 reply
  • 379 views

Hi Community,

 

I have to move almost 140 fragments from one env. to another. Is there any way I can select all of them instead of adding it one by one in the package?

 

Thanks,

Akram Husain

Best answer by nnakirikanti

@akramh Unfortunately this option not available at this point. We can achieve this by API's which may ease you little bit.

 

First API to get list of Fragments with filtering: https://developer.adobe.com/journey-optimizer-apis/references/content/#operation/getFragments

Second API to create a package with API: https://experienceleague.adobe.com/en/docs/experience-platform/sandbox/sandbox-tooling-api/packages#create

   Artifacts Array sample for fragments:

 

 

"artifactsList": [ { "id": "Fragment ID", "type": "AJO_FRAGMENT", "title": "Fragment Name" }, { "id": "Fragment ID 2", "type": "AJO_FRAGMENT", "title": "Fragment Name2" } ]

 

 

 Let me know if you need more help on this and also mark this thread accordingly.

 

~cheers,

NN.

 

1 reply

nnakirikanti
nnakirikantiAccepted solution
New Participant
January 23, 2025

@akramh Unfortunately this option not available at this point. We can achieve this by API's which may ease you little bit.

 

First API to get list of Fragments with filtering: https://developer.adobe.com/journey-optimizer-apis/references/content/#operation/getFragments

Second API to create a package with API: https://experienceleague.adobe.com/en/docs/experience-platform/sandbox/sandbox-tooling-api/packages#create

   Artifacts Array sample for fragments:

 

 

"artifactsList": [ { "id": "Fragment ID", "type": "AJO_FRAGMENT", "title": "Fragment Name" }, { "id": "Fragment ID 2", "type": "AJO_FRAGMENT", "title": "Fragment Name2" } ]

 

 

 Let me know if you need more help on this and also mark this thread accordingly.

 

~cheers,

NN.