{"action":"created","issue":{"url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/6","labels_url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/6/comments","events_url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/6/events","html_url":"https://github.com/titobrasolin/Drupal7.Services/issues/6","id":124273184,"number":6,"title":"Retrieving custom fields","user":{"login":"ibuildit","id":5072873,"avatar_url":"https://avatars.githubusercontent.com/u/5072873?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildit","html_url":"https://github.com/ibuildit","followers_url":"https://api.github.com/users/ibuildit/followers","following_url":"https://api.github.com/users/ibuildit/following{/other_user}","gists_url":"https://api.github.com/users/ibuildit/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildit/subscriptions","organizations_url":"https://api.github.com/users/ibuildit/orgs","repos_url":"https://api.github.com/users/ibuildit/repos","events_url":"https://api.github.com/users/ibuildit/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-29T21:50:13Z","updated_at":"2015-12-30T13:14:35Z","closed_at":null,"body":"How do you go about retrieving a custom field? The \"title\", etc, are straight forward to get and map to a BaseNode. But custom fields...? =)\r\n\r\nWhen I make a dump on it, I'm getting a hashtable that contains a hashtable with an Object[]\r\n\r\nI have been able to map the field in the BaseNode, but I don't know what to do with the generic Object[] containing the string value I'm interested in.\r\n\r\nFor example:\r\n\r\n\tfield_risk_trailing_trigger_1 : [XmlRpcStruct]: hashcode { 34013913 }\r\n\t{\r\n\t\tund : [Object[]]: hashcode { 34013913 }\r\n\t\t{\r\n\t\t\t300\r\n\t\t}\r\n\t}"},"comment":{"url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/comments/167995801","html_url":"https://github.com/titobrasolin/Drupal7.Services/issues/6#issuecomment-167995801","issue_url":"https://api.github.com/repos/titobrasolin/Drupal7.Services/issues/6","id":167995801,"user":{"login":"ibuildit","id":5072873,"avatar_url":"https://avatars.githubusercontent.com/u/5072873?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildit","html_url":"https://github.com/ibuildit","followers_url":"https://api.github.com/users/ibuildit/followers","following_url":"https://api.github.com/users/ibuildit/following{/other_user}","gists_url":"https://api.github.com/users/ibuildit/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildit/subscriptions","organizations_url":"https://api.github.com/users/ibuildit/orgs","repos_url":"https://api.github.com/users/ibuildit/repos","events_url":"https://api.github.com/users/ibuildit/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildit/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T13:14:35Z","updated_at":"2015-12-30T13:14:35Z","body":"In case anyone wonders how to use ToBaseNode with new nodetypes, in the ExtensionMethods.cs you simply add them like this:\r\n\r\nI also added the various drupal data types to the basenode class (such as integer, long_text, date, etc) as classes as per above message.\r\n\r\n\r\n        public static BaseNode ToBaseNode(this IDictionary value)\r\n        {\r\n            return ConvertToType<BaseNode>(value);\r\n        }\r\n\r\n        public static RiskProfileNode ToRiskProfile(this IDictionary value)\r\n        {\r\n            return ConvertToType<RiskProfileNode>(value);\r\n        }\r\n\r\n        public static TradingAccountNode ToTradingAccount(this IDictionary value)\r\n        {\r\n            return ConvertToType<TradingAccountNode>(value);\r\n        }\r\n\r\n"}}