Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Created February 11, 2014 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noeticpenguin/8937907 to your computer and use it in GitHub Desktop.
Save noeticpenguin/8937907 to your computer and use it in GitHub Desktop.
{ "body" :
{
"messageSegments" : [
{
"type": "mention", // <== type = mention for @mentions
"id":"005D0000001LL8YIAW" <== user id for the @mention
},
{
"type": "link",
"href":"http://www.google.com"
},
{
"type": "text",
"text":" Did you see the new plans?"} ]
}
]
}
}
@noeticpenguin
Copy link
Author

All that is wrong.
You want to create an attachment with this body json:

{ "attachment": 
   {
      "attachmentType":"Link",
      "url": "http://www.salesforce.com",
      "urlName": "Salesforce"
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment