{"_id":"546be34a52812008000414b3","user":"5433099f9a2b451a00ad4531","__v":3,"project":"545137a814af501a00b50cf9","version":{"_id":"545137a814af501a00b50cfc","project":"545137a814af501a00b50cf9","__v":11,"createdAt":"2014-10-29T18:53:28.525Z","releaseDate":"2014-10-29T18:53:28.525Z","categories":["545137a814af501a00b50cfd","545138eaa66f020800dbab4a","546b9072b47b5d1400109edf","546b9082b47b5d1400109ee0","546b9088b47b5d1400109ee1","546b909462515a14007ebc43","546b90a0b47b5d1400109ee2","546ced235884600e007a92f6","5481008eea7fd40b00cd7c2b","573b9d83ee2b3b220042291f","57be1efa15efc70e006a5f99"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"546b9072b47b5d1400109edf","project":"545137a814af501a00b50cf9","version":"545137a814af501a00b50cfc","__v":6,"pages":["546bdfb555639108002b1842","546be31f52812008000414af","546be32e55639108002b184a","546be33c52812008000414b1","546be34a52812008000414b3","546be36255639108002b184c"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-18T18:31:14.459Z","from_sync":false,"order":4,"slug":"open-graph","title":"Open Graph"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-19T00:24:42.219Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":false,"results":{"codes":[]},"try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":4,"body":"**Custom Object Types & Actions**\n\nYour app can specify custom object types and custom actions to create richer activities. The currently supported standard object types and actions are available to all apps, however custom object types and custom actions are scoped to your app.\n\nStandard action:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/80ILT8I0QQWT1GofCK4w_Screen-Shot-2013-04-05-at-4.35.01-PM.png\",\n        \"Screen-Shot-2013-04-05-at-4.35.01-PM.png\",\n        \"259\",\n        \"56\",\n        \"#294367\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\nCustom action:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/B3AvrwRmSimM9BU4V1AD_Screen-Shot-2013-04-05-at-5.29.49-PM.png\",\n        \"Screen-Shot-2013-04-05-at-5.29.49-PM.png\",\n        \"256\",\n        \"64\",\n        \"#24456f\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nCustom object types and actions can be created in the “Open Graph” section of your app. Find this section by navigating to your client applications page (https://www.yammer.com/client_applications), selecting your app and then selecting the “Open Graph” section in the left hand navigation menu.\n\nApp settings page for specifying custom object types and actions for your app\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/UrVAUToGQlCUI6ZirUZW_Screen-Shot-2013-04-05-at-5-1.23.57-PM.png\",\n        \"Screen-Shot-2013-04-05-at-5-1.23.57-PM.png\",\n        \"999\",\n        \"747\",\n        \"#92ac23\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nEnter a namespace for the app and enter custom object types and actions based on the form. Yammer will automatically determine when to use the present or past tense of the custom actions, and when to use the singular or plural form of the object types.\nIn order to use custom item types in the activity, use the following format of“namespace:customItem”.\n\n\nSingle Activity with custom object types and actions:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"activity\\\": {\\n    \\\"actor\\\": {\\\"name\\\": \\\"Norman O'Shea\\\", \\\"email\\\": \\\"norman:::at:::yammer.com\\\"},\\n    \\\"action\\\": \\\"github_test:commit\\\",\\n    \\\"object\\\": {\\n      \\\"url\\\": \\\"https://github/yammer-test/yam-git-OG\\\",\\n      \\\"type\\\":\\\"github_test:repository\\\",\\n      \\\"image\\\":\\\"https://a248.e.akamai.net/assets.github.com/images/modules/dashboard/octofication.png\\\",\\n      \\\"description\\\":\\\"yam-git-OG -repository to test build in Yammer integration for Github\\\",\\n      \\\"title\\\":\\\"yam-git-OG\\\"\\n    },\\n  \\\"private\\\": \\\"false\\\",\\n  \\\"message\\\": \\\"testing commit\\\"\\n  }\\n}\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"custom-types","type":"basic","title":"Custom Types"}
**Custom Object Types & Actions** Your app can specify custom object types and custom actions to create richer activities. The currently supported standard object types and actions are available to all apps, however custom object types and custom actions are scoped to your app. Standard action: [block:image] { "images": [ { "image": [ "https://files.readme.io/80ILT8I0QQWT1GofCK4w_Screen-Shot-2013-04-05-at-4.35.01-PM.png", "Screen-Shot-2013-04-05-at-4.35.01-PM.png", "259", "56", "#294367", "" ] } ] } [/block] Custom action: [block:image] { "images": [ { "image": [ "https://files.readme.io/B3AvrwRmSimM9BU4V1AD_Screen-Shot-2013-04-05-at-5.29.49-PM.png", "Screen-Shot-2013-04-05-at-5.29.49-PM.png", "256", "64", "#24456f", "" ] } ] } [/block] Custom object types and actions can be created in the “Open Graph” section of your app. Find this section by navigating to your client applications page (https://www.yammer.com/client_applications), selecting your app and then selecting the “Open Graph” section in the left hand navigation menu. App settings page for specifying custom object types and actions for your app [block:image] { "images": [ { "image": [ "https://files.readme.io/UrVAUToGQlCUI6ZirUZW_Screen-Shot-2013-04-05-at-5-1.23.57-PM.png", "Screen-Shot-2013-04-05-at-5-1.23.57-PM.png", "999", "747", "#92ac23", "" ] } ] } [/block] Enter a namespace for the app and enter custom object types and actions based on the form. Yammer will automatically determine when to use the present or past tense of the custom actions, and when to use the singular or plural form of the object types. In order to use custom item types in the activity, use the following format of“namespace:customItem”. Single Activity with custom object types and actions: [block:code] { "codes": [ { "code": "{\n \"activity\": {\n \"actor\": {\"name\": \"Norman O'Shea\", \"email\": \"norman@yammer.com\"},\n \"action\": \"github_test:commit\",\n \"object\": {\n \"url\": \"https://github/yammer-test/yam-git-OG\",\n \"type\":\"github_test:repository\",\n \"image\":\"https://a248.e.akamai.net/assets.github.com/images/modules/dashboard/octofication.png\",\n \"description\":\"yam-git-OG -repository to test build in Yammer integration for Github\",\n \"title\":\"yam-git-OG\"\n },\n \"private\": \"false\",\n \"message\": \"testing commit\"\n }\n}", "language": "text" } ] } [/block]