Please share any images or screenshots, if relevant.
[Please insert images here, otherwise delete this section]
Please share any other relevant files that may be required (for example, logs).
[Please insert files here, otherwise delete this section]
Share all details about your problem, including any error messages you may have received.
We are trying to add an email notification to the end of the attached xml workflow that sends a notification if the extended attribute drop-down in the screenshot (Third-Party Notification) has been filled out with a group or identity. I need some help adding code into the attached workflow for this.
It will depend on the requirement , there will be basically two scenario -
You want to send email if it is approved .
you can customize your approval and provision workflow.
in approval workflow , you can fetch the approval set and from that approval item , check if it is approved or not .
if it is approved then fetch the managed attribute on the basis of approval item using (ManagedAttributer class ) or up to you .
Fetch the extended attribute and put down a step and send the email.you would have to prepare email template etc . you can send email using workflow action or context.sendEmailNotification.
Approval does not matter at all , anyhow you want to send the mail
you can put a step after Notify step.
Fetch the provisiong Plan.
Fetch the account request and then attribute request.
again fetch the managed attribute on the basis of attribute value.
prepare email template etc and send the notification.
I would say first finalize your requirement and go through above approach.
feel free to reach out in case you need further help .
I have attached an example of the provisioning plan that was found recently in the logs. I am trying to see exactly where my approval workflow is located. I can also create the email template but exactly where do I put the step and what exactly would the step say/script? Before then, what could write if it is approved and where?
Please use this sample script to get the role details and send email notification, you can customize it a bit according to your need.
In workflow you can add a Step after Identity Request Notify add this logic and send email.
You can retrieve the value of the Roles extended attribute and check if it is set to “Third-Party Notification”. If so, proceed to invoke the Notification step to send the email.
You can implement this using either of the following approaches: