Thanks for looking
I am getting the email but it just not giving me the access role that is getting added on the create of the account. Here is the jason
{
“name”: “Salesforce Account create Notification”,
“description”: “”,
“modified”: “”,
“modifiedBy”: {
“type”: “IDENTITY”,
“id”: “XXXXXXXXXXX”,
“name”: “XXXXXXXXX”
},
“definition”: {
“start”: “Get Identity”,
“steps”: {
“End Step - Success”: {
“description”: “End Step - Success”,
“displayName”: “”,
“type”: “success”
},
“Get Access”: {
“actionId”: “sp:access:get”,
“attributes”: {
“accessprofiles”: false,
“entitlements”: false,
“getAccessBy”: “specificIdentity”,
“identityToReturn.$”: “$.trigger.recipient.id”,
“query”: null,
“roles”: true
},
“displayName”: “”,
“nextStep”: “Send Email”,
“type”: “action”,
“versionNumber”: 1
},
“Get Identity”: {
“actionId”: “sp:get-identity”,
“attributes”: {
“id.$”: “$.trigger.recipient.id”
},
“displayName”: “”,
“nextStep”: “Get Access”,
“type”: “action”,
“versionNumber”: 2
},
“Send Email”: {
“actionId”: “sp:send-email”,
“attributes”: {
“body”: “
Hello,
\n
<p>A account for $name withthe $dept job title has been created in the Salesforce Development (UAT) application</p>
\n
Access:
\n
The Access Granted is as below
\n
${access}
\n
‘${requestItemName}’
\n
Thank you,
\n
The IAM Team
\n
\n
\n
”,
“context”: {
“access.$”: “$.getAccess.accessItems”,
“dept.$”: “$.getIdentity.attributes.jobTitle”,
“name.$”: “$.getIdentity.name”
},
“from”: “
[email protected]”,
“recipientEmailList”: [
“
[email protected]”
],
“replyTo”: null,
“subject”: "New Account Created for Salesforce "
},
“displayName”: “”,
“nextStep”: “End Step - Success”,
“type”: “action”,
“versionNumber”: 2
}
}
},
“creator”: {
“type”: “IDENTITY”,
“id”: “XXXXXXXXX”
},
“trigger”: {
“type”: “EVENT”,
“attributes”: {
“filter.$”: “$.accountRequests[?(@.accountOperation == "Create" && (@.provisioningResult == "SUCCESS" || @.provisioningResult == "committed") && @.source.id == "2b3875717c024eeda502f48486862bf3")]”,
“id”: “idn:post-provisioning”
}
}
}