<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Workflows Gmail Connector - Forward Emails Card Returns "400 Bad Request" Error
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

Executing the Gmail Forward Emails card in a workflow returns a 400 Bad Request error where the response body contains the following, even though a valid forwarding address was provided:

{
    "body": {
        "error": {
            "code": 400,
            "message": "Invalid forwarding address",
            "errors": [
                {
                    "message": "Invalid forwarding address",
                    "domain": "global",
                    "reason": "failedPrecondition"
                }
            ],
            "status": "FAILED_PRECONDITION"
        }
    }
}
Applies To
  • Workflows Gmail Connector
  • Forward Emails card
Cause

In some cases, Gmail requires verification of a forwarding address. If verification is required, the forwarding address will be added when the Forward Emails card executes, but the HTTP 400 error will be returned with a status of "FAILED_PRECONDITION". A verification email is sent to the target email address ("Forward To" address), and the owner must complete the verification process.

To confirm verification is required, the owner of the source email address ("Forward From" address) can sign in to Gmail and navigate to Google Settings > See All Settings > Forwarding and POP/IMAP. See the Forwarding section to determine if the address needs to be verified:

Redacted Verification Required

NOTE: If the target user did not receive the verification email, it can be resent by clicking the Re-send email link.

Solution

The target user must complete the verification process before the email can be forwarded.


Related References

Loading
Workflows Gmail Connector - Forward Emails Card Returns "400 Bad Request" Error