Custom Authentication webservice connector

Hi All, I’m attempting to retrieve the custom authentication token in the Before Rule and include it in the modified body. I used the following approach:

String accessToken = (String) appAttributes.get(“ConnectionID”);
String customerID = (String) appAttributes.get(“CustomerID”);

However, the customerID value is returning as null. Could someone please assist me with this issue?

The response attribute mapped under Custom Authentication are not stored in the application schema. So it can’t be retrieved using getAttributeValue.

Instead you can refer to the CA attributes like $application.ConnectionID$ and add it to the header or body of the operation.