Loading

The headers being set in the External credential, when using the getheader() method returns a null value in System debug statements

Дата публикации: Aug 30, 2024
Описание

When performing a callout using External Credential and the Headers are being set in the custom headers section of the External credential, the getheader() method will return a null value in the system debug statements logs even when the headers are being set in the External credential.

Решение

This is an expected behavior. We set custom headers configured in external credentials when we're about to send a request to an endpoint. They're not printed in Apex.

 The custom headers set in external credentials are not printed in debug statements.

Номер статьи базы знаний

002119943

 
Загрузка
Salesforce Help | Article