NotificationConfig - Certification

Hello everyone,

I have a plugin that has the objective of create target certifications, i would like to trigger notifications for the manager 3 days after start the certification start and other notification 2 days before it ends. I’m trying to use the following code:

			NotificationConfig notificationConfig = new NotificationConfig();
		        notificationConfig.setEnabled(true);
		        notificationConfig.setStartDate(new Date()); // Data de início em milissegundos
		        notificationConfig.setEndDate(new Date()); // Data de término em milissegundos
		      
		       
		        List reminderConfigs = new ArrayList<>();

		        ReminderConfig reminderConfig1 = new ReminderConfig();
		        reminderConfig1.setEmailTemplateId("ac1f307388de1a4c8188df139f8a5063");
		        reminderConfig1.setEnabled(true);
		        reminderConfig1.setOnceEveryHowManyDays(3);
		        reminderConfig1.setStartHowManyDays(3);
		        reminderConfigs.add(reminderConfig1);

		        ReminderConfig reminderConfig2 = new ReminderConfig();
		        reminderConfig2.setBefore(true);
		        reminderConfig2.setEmailTemplateId("ac1f307388de1a4c8188df139f8a5063");
		        reminderConfig2.setEnabled(true);
		        reminderConfig2.setOnceEveryHowManyDays(1);
		        reminderConfig2.setStartHowManyDays(2);
		        reminderConfigs.add(reminderConfig2);

		        notificationConfig.setConfigs(reminderConfigs);

		        certificationDefinition.setAttribute("certification.remindersAndEscalations",notificationConfig);

what can be wrong?

You code looks fine for the most part but can you try replacing the last line in your code you pasted above with the following

certificationDefinition.setCertificationNotificationConfig(notificationConfig);

I just found the reason, i was importing the class from sailpoint.object.CertificationDefinition.NotificationConfig instead of sailpoint.object.NotificationConfig

Thanks!!