Expand my Community achievements bar.

How to promote launch using API

Avatar

Level 7

I am trying to promote the launch page using java can you help me in writing the code to promote the launch which I create using java only

2 Replies

Avatar

Community Advisor

Use below api's-

 

https://www.adobe.io/experience-manager/reference-materials/6-5/javadoc/com/adobe/cq/launches/api/pa...

 

<!-- https://mvnrepository.com/artifact/com.adobe.cq/cq-launches-api -->
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>cq-launches-api</artifactId>
<version>5.6.4</version>
</dependency>

Avatar

Level 7

I tried using but can't understand 

I have launch name pcp_page

launchManager.promoteLaunch(launch, null);

 

Should I let the parameter null?