Hi,
I am configuring the Microsoft Graph API to enable me to send emails on users behalf, so far i have for O’Auth working properly, and my API structure works:
{
“message”: {
“subject”: “<Subject_Text>”,
“body”: {
“contentType”: “HTML”,
“content”: “<Body_Content_HTML>”
},
“toRecipients”: [
<To_JSON>
],
“ccRecipients”: [
<CC_Recipient_Email>
],
“bccRecipients”: [
<BCC_Recipient_Email>
]
},
“saveToSentItems”: “true”
}
I am able to sucessfully initialise this with Graph API, and it will send the email, below are my test values:
I am also able to trigger this from my workflow. My To list is being populate from a little group i have built below:
This forms the basis of the workflow, which sets the email addresses in a to, cc and bcc list. Each item is formatted like below:
The issue i am facing is that if one of the fields is not populated. e.g the user does not copy or bcc anyone in, then this all breaks and the email will not send. The reason for this, i suspect is that Bubble is sending a ‘null value’ see below:
Now at the moment, the cc and bcc field can be blank (configured in the API workflow) so if this is empty. It just sends Null, which the Graph API won’t accept. If i check this box so that a value must be entered, it will just use the test value in the API connector, which is not what i want. I tried changing the test value in the API connector to nothing or but then of course the API won’t actually initialise, i also tried to use bollean formatting in workflow like below:
But this still does not work, i think probably because i am formatting the cc-list, and that is actually empty, since the user did not add anyone to the CC field.
So basically i am really stuck and cannot see how i can somehow force a value that Graph will accept without returning null.
I hope this make sense, if anyone is able to help, i would be very grateful!
Thanks





