Send email notification in after rule Webservice Connector

Which IIQ version are you inquiring about?

Version 8.X

Share all details related to your problem, including any error messages you may have received.

Hi,

We have a web service connector,
We have a requirement to send a notification to the identity when entitlement added,
Is it possible to do that in the after operation rule as the information we need to provide in the notification area:

  • The identity email
  • The entitlement display name

Is there any best practice to do that?

Thanks

Hi @massinissa,

In ideal case once request completes you can configure the notification from LCM workflow only.

But if the use-case is just to send it for this webservice application then you can configure it from after operation rule. Please find the sample code.

EmailTemplate template=context.getObjectByName(EmailTemplate.class,"SampleTemplate");
		EmailOptions opt=new EmailOptions();
		opt.setTo("[email protected]");
		opt.setVariable("identityName","identityName");
		
		context.sendEmailNotification(template, opt);

Thanks

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.