How to parse request details in Email


#1

Hello,

I want to add the request details in Email format and want to send it to the approvers.

Any idea how this can be achieved.

Thanks,
Pushkar Mahakal


#2

Copy /ManageIQ/Infrastructure/VM/Provisioning/Email/MiqProvision_Pending method into your domain, and add this line somewhere between rows 93-100 (emailapprover method):

body += "<br><br>Requested memory: #{miq_request.get_option(:vm_memory)}"

If you want to modify the service approval email instead, you need to copy and modify /ManageIQ/Service/Provisioning/Email/ServiceTemplateProvisionRequest_Pending method.