Avatar

Correct answer by
Level 4

Hey @Denis_Bozonnet ,

Thanks a lot for quick response, really appreciate it! 

While trying to share the js, I just went through it once and luckily got the error --

Mistake:

I was trying to create a table using - "select * from <previous table> and was trying to post this to outcome postEvent and the previous table name I was trying to fetch from xml body-- which was yielding the incorrect result, once I removed this code and directly used below mentioned code from @DavidKangni  response in https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/outbound-transitio...

 it worked :slightly_smiling_face: 

task.postEvent(task.transitionByName('transition'));
task.setCompleted();
return 0;

Thanks once again @Denis_Bozonnet  @Ssb_94 @DavidKangni  for all the help :smiling_face_with_smiling_eyes:

 

View solution in original post