Programatically Generate/Copy Editable Templates and Policies

Avatar

Avatar
Validate 1
Level 2
rajeevy89244319
Level 2

Likes

10 likes

Total Posts

50 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
rajeevy89244319
Level 2

Likes

10 likes

Total Posts

50 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
rajeevy89244319
Level 2

15-03-2020

I have 2 use cases:

1. Programmatically create copy of existing Editable Template and its policies

2. Programmatically generate new Editable Template based on Template Type.

 

Could you please suggest which APIs/classes can be used to achieve this. I looked into TemplateManager but it does not seem to be having methods to copy the templates.

View Entire Topic

Avatar

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

148 likes

Total Posts

164 posts

Correct reply

42 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

148 likes

Total Posts

164 posts

Correct reply

42 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile
Suraj_Kamdi
MVP

16-03-2020

@rajeevy89244319 Currently, there is no API available to create the editable templates programmatically. 

To create a copy of existing editable templates and policies, you just need to update the .content.xml file as per your requirement and template type

or else you can simply build the editable templates inside /conf folder with the help of CRXDE.

Please let me know if you need any help. I am happy to help 🙂