<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: whatbuylists</title>
    <description>The latest articles on DEV Community by whatbuylists (@whatbuylists).</description>
    <link>https://dev.to/whatbuylists</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F680359%2F81e3e69c-6342-4d0f-9f74-8b66ef6156fa.png</url>
      <title>DEV Community: whatbuylists</title>
      <link>https://dev.to/whatbuylists</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whatbuylists"/>
    <language>en</language>
    <item>
      <title>Message is empty error on Outlook Node.js sendMail API request on pipedream</title>
      <dc:creator>whatbuylists</dc:creator>
      <pubDate>Thu, 05 Aug 2021 04:14:58 +0000</pubDate>
      <link>https://dev.to/whatbuylists/message-is-empty-error-on-outlook-node-js-sendmail-api-request-on-pipedream-3pla</link>
      <guid>https://dev.to/whatbuylists/message-is-empty-error-on-outlook-node-js-sendmail-api-request-on-pipedream-3pla</guid>
      <description>&lt;p&gt;I am sending this node.js request through Pipedream:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   async(event, steps, auths) =&amp;gt; {
      return await require("@pipedreamhq/platform").axios(this, {
        "url": `https://graph.microsoft.com/v1.0/me/sendMail`,
        "headers": {
          "Authorization": `Bearer ${auths.microsoft_outlook.oauth_access_token}`,
          "Content-Type": 'application/json'
        },
        "method": 'POST',
        "message": {
          "subject": 'Hey there, your whatbuylists product details are attached',
          "body": `Thank you for your purchase of this whatbuylists product list. The details of the list are available here: ${steps.get_product.$return_value.metadata.successURL}`,
          "toRecipients": `${steps.trigger.event.data.object.customer_details.email}`
          }
        }

      )
      }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And getting this error. How can I resolve it?:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "error": {
    "code": "ErrorInvalidParameter",
    "message": "The value of the parameter 'Message' is empty."
  }
}
at null.createError (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:387:35)
at null.endReadableNT (internal/streams/readable.js:1317:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How can I resolve this issue? I am new to coding and trying to automate a workflow in pipedream.&lt;/p&gt;

</description>
      <category>node</category>
      <category>api</category>
      <category>outlook</category>
      <category>pipedream</category>
    </item>
  </channel>
</rss>
