Sending message to MS Teams from Desk function

Sending message to MS Teams from Desk function

I am trying to post a message to a MS Teams Webhook. I am getting the following error: ncompatible types for invokeUrl function at argument index Parameters <br/> Required : STRING <br/>Found : MAP. LineNumber : 48.

Anyone ever have any suggestions on the issue? 

Thanks in advance.
  1. data=Map();
  2. data.put({
  3.   "@type": "MessageCard",
  4.   "@context": "http://schema.org/extensions",
  5.   "summary": "Dwarf planet Pluto details",
  6.   "sections": [{
  7.     "activityTitle": "Dwarf planet Pluto details",
  8.     "facts": [
  9.       {
  10.         "name": "Description",
  11.         "value": "Pluto is an icy dwarf planet in the Kuiper belt, a ring of bodies beyond the orbit of Neptune. It was the first Kuiper belt object to be discovered and is the largest known dwarf planet. Pluto was discovered by Clyde Tombaugh in 1930 as the ninth planet from the Sun. After 1992, its status as a planet was questioned following the discovery of several objects of similar size in the Kuiper belt. In 2005, Eris, a dwarf planet in the scattered disc which is 27% more massive than Pluto, was discovered. This led the International Astronomical Union (IAU) to define the term \"planet\" formally in 2006, during their 26th General Assembly. That definition excluded Pluto and reclassified it as a dwarf planet."
  12.       },
  13.       {
  14.         "name": "Order from the sun",
  15.         "value": "9"
  16.       },
  17.       {
  18.         "name": "Known satellites",
  19.         "value": "5"
  20.       },
  21.       {
  22.         "name": "Solar orbit (*Earth years*)",
  23.         "value": "247.9"
  24.       },
  25.       {
  26.         "name": "Average distance from the sun (*km*)",
  27.         "value": "590637500000"
  28.       },
  29.       {
  30.         "name": "Image attribution",
  31.         "value": "NASA/Johns Hopkins University Applied Physics Laboratory/Southwest Research Institute/Alex Parker [Public domain]"
  32.       }
  33.     ]
  34.   }],
  35.   "potentialAction": [{
  36.     "@context": "http://schema.org",
  37.     "@type": "ViewAction",
  38.     "name": "Learn more on Wikipedia",
  39.     "target": ["https://en.wikipedia.org/wiki/Pluto"]
  40.   }]
  41. });

  42. response = invokeurl
  43. [
  44. url: "https://outlook.office.com/webhook/a79530fb-420c-4c0d-a6f0-34ffb50e19d2@3255294b-d9d9-46c0-8a97-1c77893fcf88/IncomingWebhook/408f9a7b851944faaac5f21ececebddd/74f9f945-3985-45c5-a6d1-f1808113dedc"
  45. type: POST
  46. content-type: "application/json"
  47. parameters: data
  48. ];