{"action":"closed","issue":{"url":"https://api.github.com/repos/tom-gangemi/Force.com-Replicator/issues/5","labels_url":"https://api.github.com/repos/tom-gangemi/Force.com-Replicator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tom-gangemi/Force.com-Replicator/issues/5/comments","events_url":"https://api.github.com/repos/tom-gangemi/Force.com-Replicator/issues/5/events","html_url":"https://github.com/tom-gangemi/Force.com-Replicator/issues/5","id":100735871,"number":5,"title":"Support for \"multipicklist\" field type","user":{"login":"skwirrel","id":3899741,"avatar_url":"https://avatars.githubusercontent.com/u/3899741?v=3","gravatar_id":"","url":"https://api.github.com/users/skwirrel","html_url":"https://github.com/skwirrel","followers_url":"https://api.github.com/users/skwirrel/followers","following_url":"https://api.github.com/users/skwirrel/following{/other_user}","gists_url":"https://api.github.com/users/skwirrel/gists{/gist_id}","starred_url":"https://api.github.com/users/skwirrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwirrel/subscriptions","organizations_url":"https://api.github.com/users/skwirrel/orgs","repos_url":"https://api.github.com/users/skwirrel/repos","events_url":"https://api.github.com/users/skwirrel/events{/privacy}","received_events_url":"https://api.github.com/users/skwirrel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T10:40:49Z","updated_at":"2015-08-14T07:03:33Z","closed_at":"2015-08-14T07:03:33Z","body":"Data containing this field type causes the following error:\r\nunsupported field type (multipicklist)\r\n\r\nFixing this just requires adding \r\n    case 'multipicklist':\r\non line 275 of Replicator.php thus...\r\n    switch($field->type) {\r\n                                        case 'id':\r\n                                        case 'reference':\r\n                                        case 'string':\r\n                                        case 'picklist':\r\n                                        case 'multipicklist':\r\n                                        case 'textarea':\r\n                                        case 'phone':\r\n                                        case 'url':\r\n                                        case 'url':\r\n\r\nThe data appears to be presented by SalesForce as a semicolon separated text field e.g.\r\nPresenting;Jury\r\nso handling this in the same way as picklist looks OK to me.\r\n\r\nJust in case it helps here is a print_r of the $field object for a multipicklist field...\r\n\r\n    [215] => stdClass Object\r\n        (\r\n            [autoNumber] =>\r\n            [byteLength] => 4099\r\n            [calculated] =>\r\n            [caseSensitive] =>\r\n            [createable] => 1\r\n            [custom] => 1\r\n            [defaultedOnCreate] =>\r\n            [deprecatedAndHidden] =>\r\n            [digits] => 0\r\n            [filterable] => 1\r\n            [groupable] =>\r\n            [idLookup] =>\r\n            [label] => Talent Support Interest\r\n            [length] => 4099\r\n            [name] => Talent_Support_Interest__c\r\n            [nameField] =>\r\n            [namePointing] =>\r\n            [nillable] => 1\r\n            [permissionable] => 1\r\n            [picklistValues] => Array\r\n                (\r\n                    [0] => stdClass Object\r\n                       (\r\n                            [active] => 1\r\n                            [defaultValue] =>\r\n                            [label] => Presenting\r\n                            [value] => Presenting\r\n                        )\r\n\r\n                    [1] => stdClass Object\r\n                        (\r\n                            [active] => 1\r\n                            [defaultValue] =>\r\n                            [label] => Hosting\r\n                            [value] => Hosting\r\n                        )\r\n\r\n                    [2] => stdClass Object\r\n                        (\r\n                            [active] => 1\r\n                            [defaultValue] =>\r\n                            [label] => Mentoring\r\n                            [value] => Mentoring\r\n                        )\r\n\r\n                    [3] => stdClass Object\r\n                        (\r\n                            [active] => 1\r\n                            [defaultValue] =>\r\n                            [label] => Events\r\n                            [value] => Events\r\n                        )\r\n\r\n                    [4] => stdClass Object\r\n                        (\r\n                            [active] => 1\r\n                            [defaultValue] =>\r\n                            [label] => Jury\r\n                            [value] => Jury\r\n                        )\r\n\r\n                )\r\n\r\n            [precision] => 0\r\n            [restrictedPicklist] =>\r\n            [scale] => 0\r\n            [soapType] => xsd:string\r\n            [sortable] =>\r\n            [type] => multipicklist\r\n            [unique] =>\r\n            [updateable] => 1\r\n        )\r\n\r\n)\r\n"}}