<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
0D54z00008U4oU9CAJOkta Classic EngineAnswered2025-04-12T09:03:33.000Z2022-12-05T21:07:24.000Z2022-12-14T19:45:25.000Z

yfume (yfume) asked a question.

Send email using Sendgrid in Okta workflow

Hello, I am getting 400 error code when using Send Email card under SendGrid connector in Okta workflow as below:

{

 "retry_count": 0,

 "flo": "sendgrid:1.0.60:sendEmail",

 "method": "lLHu2cheEg24",

 "execution": "560fcf59-43a9-45bc-ac91-1a7b90e5ce7d",

 "module": "control.branch",

 "kind": "HTTP Request Error",

 "statusCode": 400,

 "headers": null,

 "body": null,

 "message": "No type for the Content input provided. Please enter a valid type.",

 "description": "HTTP Request Error",

 "steps": 16,

 "_fatal": null,

 "left-operand": {},

 "source": {

  "flo": "sendgrid:1.0.60:getBodyWithoutTemplateButWithBypassListMgt",

  "method": "3CkCo0NU42xD",

  "execution": "3c489e40-4c5f-43c2-8ec7-eac144d5a2d2",

  "module": "list.each"

 },

 "operator": "is empty",

 "right-operand": ""

}

 

Anybody has any experience or could provide an example of content used in Send Email card as the error complains about No type provided? I was using content like:

{“type”: “text/plain”, “value”: “testing 123”} or

{“content-type”: “text/plain”, “content-value”: “testing 123”}

 

 

thank you

Wendy


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @yfume (yfume)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some research and it seems that adding the characters manually might be the root cause of the issue as it might not register them as a list, therefore, you could try to pass the object through the Construct card to build the list and to see if you are still encountering the 400 error when using the output of this card.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Upvote or Select as Best on responses. Try it today.

     

    Expand Post
    Selected as Best
  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @yfume (yfume)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some research and it seems that adding the characters manually might be the root cause of the issue as it might not register them as a list, therefore, you could try to pass the object through the Construct card to build the list and to see if you are still encountering the 400 error when using the output of this card.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Upvote or Select as Best on responses. Try it today.

     

    Expand Post
    Selected as Best
  • yfume (yfume)

    Thank you! It works now by passing in a list object.

This question is closed.
Loading
Send email using Sendgrid in Okta workflow