400 Bad Request while using "send email" action in Workflow

Hello Developer community,

I am trying to use a simple send email action in my workflow but i am getting this error : request failed: 400 - 400 Bad Request: The request could not be parsed. (type: HTTP Response Returned a Client Error, retryable: false)

Here is my Workflow script (which I got from the Workflow builder) :
{

"name": "WF",

"description": "test",

"modified": "2022-05-30T12:21:59.137768132Z",

"definition": {

    "start": "Send Email",

    "steps": {

        "Send Email": {

            "actionId": "sp:send-email",

            "attributes": {

                "body": "test",

                "context": "",

                "from": "[email protected]",

                "recipientId": "2c9180877e8cf41f017e9197fd2d01cd",

                "replyTo": "[email protected]",

                "subject": "TEST"

            },

            "description": "t",

            "nextStep": "success 1",

            "type": "action"

        },

        "success 1": {

            "description": "t",

            "type": "success"

        }

    }

},

"creator": {

    "type": "IDENTITY",

    "id": "2c9180877e8cf41f017e9197fd2d01cd",

    "name": "aaron.nichols"

},

"trigger": {

    "type": "EVENT",

    "attributes": {

        "id": "idn:identity-attributes-changed"

    }

}

}

I am using my own id to get this email. I also checked what endpoint was used in the workflow in order to test it, which is :

“method”: “POST”,
“path”: “notification/send-notification”

But I don’t find any information about this endpoint in the documentation. Do you have any suggestion about it ?
Thanks.

I am able to send an email with similar inputs as you. Did you recently create this workflow, or is this an older one that just started failing? Try creating a new workflow and manually add the same logic to see if it is resolved. There might have been a change to the workflow engine that could have broken older workflows.

Hello,
Thanks for your answer, I tried with a newly created Workflow and the same configuration but I am still not able to send an email.
Here is my script :

{

    "name": "test_email",

    "description": "new",

    "modified": "2022-06-02T15:11:59.645924823Z",

    "definition": {

        "start": "Send Email",

        "steps": {

            "Send Email": {

                "actionId": "sp:send-email",

                "attributes": {

                    "body": "new test",

                    "from": "[email protected]",

                    "recipientId": "2c91808880d7c0af0180f1bfac267903",

                    "replyTo": "[email protected]",

                    "subject": "new"

                },

                "description": "t",

                "nextStep": "success",

                "type": "action",

                "versionNumber": 1

            },

            "success": {

                "description": "t",

                "type": "success"

            }

        }

    },

    "creator": {

        "type": "IDENTITY",

        "id": "2c9180877e8cf41f017e9197fd2d01cd",

        "name": "aaron.nichols"

    },

    "trigger": {

        "type": "EVENT",

        "attributes": {

            "id": "idn:identity-attributes-changed"

        }

    }

}

And I got the same error 400.

Do you have some documentation about this endpoint :
“method”: “POST”,
“path”: “notification/send-notification”

Thanks in advance.

I was able to reproduce this issue. I think the issue is that the from field must use an @sailpoint.com domain or be left blank. If I had to guess, it’s because our email service provider is configured to only allow emails to be sent from SailPoint to prevent spoofing. If you leave the from address empty, the email will come from [email protected] by default. You can still configure the reply to to be any address.

I’m experiencing the same issue. I left the From field blank and got the same error. Previously I was using an email address that has been validated.

The fix provided by @tburt here: SaaS Workflows | Open Beta Update - #57 by tburt worked and now my test is successful, however, I never receive the email. In the beta version emails were sent when testing workflows.