ConnectorAfterModify - cloudPreviousValues

Hi @phil_awlings,

Here is an example for getting the old value of extensionAttribute4 in the After Modify PowerShell script. Note that you will get this value only if extensionAttribute4 is changing as part of the event.

$attributesMap = $requestObject.Attributes

$oldext4=$attributesMap.cloudPreviousValues.extensionAttribute4

OR

$oldext4=$attributesMap['cloudPreviousValues']['extensionAttribute4']

1 Like