Need to send notification only for specific source, after creating an account

Using "New account Provisioned " email template, i need to send notification only for specific source, after creating an account.
can that be done?, if yes, then please share the logics if you have.

HI Senthil,

Did you check the documentation for “New account Provisioned” ?

We can do this by adding the sourceId for the source. Could you please check the below document for more details.

API to Notify Users When a New Account is Provisioned - Compass.

{
“enabled”:true,
“emailAccountOwner”:false, “emailAccountOwnerAltEmail”:false,
“emailAccountManager”:false, “accountIdAttribute”:“distinguishedName”,
“sourceId”:“”,
“accountNotificationList”: [
[email protected]”,
[email protected]
]
}

I noticed a comment to use the beta API. Does the below look correct?

Is this for the email template “New Account Provisioned”, with what you find in the email templates under the global configuration?

Operation: PATCH

URL: {{api-url}}/beta/sources/SOURCE_ID

Body:
    {
        "op": "replace",
        "path": "/connectorAttributes/accountCreateNotification",
        "value": {
            "notifyAccountManager": true,
            "accountIdAttribute": "distinguishedName",
            "notifyList": [
                "[email protected]"
            ],
            "notifyAccountOwner": true,
            "enabled": true,
            "notifyAccountOwnerAltEmail": false
        }
    }
]



NOTE: Change the body as needed for your settings. The settings in this body are similar to the what the document calls out even though its a different API call.

Is it possible to edit the source via vscode as well?

I was surprised that when I did an export of the sandbox, I didn’t see any notification / email templates.

The document referenced works just fine with the cc API. May be deprecated at some point.

If you use vscode you should be able insert the below sample:

“accountCreateNotification”: {
“notifyAccountManager”: true,
“accountIdAttribute”: “distinguishedName”,
“notifyList”: [
[email protected]
],
“notifyAccountOwner”: false,
“enabled”: true,
“notifyAccountOwnerAltEmail”: false
},

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