Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ "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

This comment has been minimized.

Copy link
Owner Author

noeticpenguin commented Feb 11, 2014

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
You can’t perform that action at this time.