Promoting Launch Using Api

Avatar

Avatar
Validate 1
Level 1
pranalim1653274
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
pranalim1653274
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
pranalim1653274
Level 1

14-12-2020

Hi,

I am trying to use LaunchManager Api to Promote the launch, but I am unable to set LaunchPromotion Parameters.

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...

 

Code : 

Launch launch = res.adaptTo(Launch.class); // Launch Path

LaunchManager launchManager = res.adaptTo(LaunchManager.class); // LaunchManager object

launchManager.promoteLaunch(launch, launchParameters?);

 

if anyone has a sample code snippet, that would be helpful.

 

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

27-12-2020

@pranalim1653274 

Here's the sample implementation for promoting a launch programmatically, which you can refer to:

 

https://github.com/terrabeata/promote-launch/blob/master/bundle/src/main/java/com/adobe/daycare/exam...

Answers (1)

Answers (1)

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

15-12-2020

I believe you just have to create a new Java POJO class which will implement LaunchPromotionParameters interface. Implement the methods of the interface and pass the POJO object to the promoteLaunch method.