Hi Everyone,
I am relatively new to Customizers and am developing one for a Web Services SaaS connector.
Use case
When a user’s email address changes, I need to add the following structure to the Update Account request body:
"communicationChannel": [
{
"communicationChannelCode": "EMAIL",
"communicationValue": "##UserEmail##"
}
]
Here, ##UserEmail## should be replaced with the updated email value from the provisioning plan.
I have configured the Customizer hook under:
customizedOperation: Update Account:before
Update Account is the HTTP operation used for account updates.
Issue
Based on the SailPoint documentation, I tried retrieving the HTTP operation body using:
input._requestConfig.body
However, input._requestConfig.body is always null.
I can see another property named:
input._requestConfig._body
This property contains the configured HTTP operation body, but its plan placeholders have not yet been resolved. For example, it still contains values such as: $plan.email$
instead of the updated email address.
Because the request body is not populated and the placeholders in _body are not resolved, I cannot determine whether email is present in the provisioning plan or reliably construct the required communicationChannel JSON structure.
I referred to the SailPoint Endpoint Before Customization documentation, which appears to indicate that the request body can be retrieved and modified in a way similar to a Web Services Before Operation Rule.
Could someone please clarify:
- Why is
input._requestConfig.bodynull in theUpdate Account:beforehook? - Is
input._requestConfig._bodyintended to be used, even though its plan placeholders have not yet been resolved? - How can I access the provisioning plan or determine whether the
emailattribute is part of the current update?
If anyone has implemented a similar requirement using a Customizer, an example would be very helpful.
Thanks!