How to create collection and add Assets folder in to collection programtically? | Community
Skip to main content
Level 2
July 14, 2021
Solved

How to create collection and add Assets folder in to collection programtically?

  • July 14, 2021
  • 2 replies
  • 1003 views

Hi Team,

How to create a collection and add Assets folder in to collection programmatically?

How to  add assets and assetsFolder to collection through code Ex servlet

 

@Arun_Patidar
@dipti_chauhan 
@Ritesh_M
@Vijayalakshmi_S
@markus_bulla_adobe

Thanks
Kotireddy

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

2 replies

Adobe Employee
July 16, 2021

Hi @kotireddy4b1 

You need to write the custom code for the same and in order to create it you can make use of ResourceCollection api and ResourceCollectionManager.

 

Hope this helps

 

Level 2
July 18, 2021

thanks @kiran_vedantam     @bimmiso  I am able to create a dam collection successfully

Can you please help me with how to read id(9wMp6sGyejwQn-rzopsh) based on the user login.
EX: If admin user login then need to display this id: 9wMp6sGyejwQn-rzopsh