Hi everyone,
Has anyone been able to successfully retrieve the following fields in the Access Request email template?
I’m trying to populate these values:
- Requester login
- Justification provided in the request
- Requested group name
- Group/access profile/role description
- Application name
If you’ve managed to retrieve any of these (especially 2, 4, and 5), could you share how you accessed them?
Thanks in advance!
the following docs will give the in detail what you need actually
trettkowski
(Tyler Rettkowski)
3
Hi @gustavoesp_1337, according to the documentation you can use the following variables for each of those!
- “requesterName”
- “accessRequestMetadata”
- “requestedObjectName” or “accessibleItems” or “accessProfileName”
- “requestedObjectName” or “accessibleItems” or “accessProfileName”
- “sourceInformation”
The documentation above has details on all of the available variables in that template.
If it’s still not working even with those variables, please shoot us what you’ve tried and we can work from there!
Hey Tyler
tried to use the accessRequestMetadata variable but it always return empty
The template was like this: (i followed the example in the documentation)
<p>#if(${accessRequestMetadata} && ${accessRequestMetadata.get("requestContextInformation")}) Requested Dimensions Attributes:#foreach($key in ${accessRequestMetadata.get("requestContextInformation").keySet()})</p>
<ul><li>${key}:${accessRequestMetadata.get("requestContextInformation").get($key)}</li></ul>#end#end
but it returned nothing.
Also tried:
<p><strong>Debug - accessRequestMetadata keys:</strong></p>
<ul>
#foreach($key in $accessRequestMetadata.keySet())
<li>$key: $accessRequestMetadata.get($key)</li>
#end
</ul>
and it didn’t return anything also