{"action":"created","issue":{"url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/101","repository_url":"https://api.github.com/repos/Aymkdn/SharepointPlus","labels_url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/101/comments","events_url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/101/events","html_url":"https://github.com/Aymkdn/SharepointPlus/issues/101","id":305273396,"number":101,"title":"startWorkflow not working","user":{"login":"beruken","id":8451986,"avatar_url":"https://avatars3.githubusercontent.com/u/8451986?v=4","gravatar_id":"","url":"https://api.github.com/users/beruken","html_url":"https://github.com/beruken","followers_url":"https://api.github.com/users/beruken/followers","following_url":"https://api.github.com/users/beruken/following{/other_user}","gists_url":"https://api.github.com/users/beruken/gists{/gist_id}","starred_url":"https://api.github.com/users/beruken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beruken/subscriptions","organizations_url":"https://api.github.com/users/beruken/orgs","repos_url":"https://api.github.com/users/beruken/repos","events_url":"https://api.github.com/users/beruken/events{/privacy}","received_events_url":"https://api.github.com/users/beruken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-03-14T18:14:41Z","updated_at":"2018-03-16T16:46:17Z","closed_at":null,"author_association":"NONE","body":"I'm trying to fire off a sp2010 workflow from within SP2016. The 2013/16 WF manager is not yet enabled so we are using the 2010 default.  I found your status method and it returned this... \r\n\"In Progress\" then when the script was completed it showed this in the console...\r\n\"Possible Unhandled Promise Rejection: [SharepointPlus 'startWorkflow'] Please provide the item ID\"\r\n\r\n`$SP().list(\"Product Sheets\", \"http://mysite\").startWorkflow({workflowName:\"Create Product Sheet\", \r\n\t\t\t\t\tparameters:[{name:\"TaskUID\",value:kt.TaskId},{name:\"TaskID\",value:101},{name:\"TaskName\",value:kt.TaskName},{name:\"Project\",value:projectData.ProjectName},{name:\"ProjectID\",value:projectData.Id},{name:\"EstDate\",value:kt.TaskBaselineFinishDate},{name:\"TaskStart\",value:kt.TaskStartDate}]});\r\n`\r\n\r\nPlease note: the WF is used to create a new list item not operate on one.\r\n\r\nAny Idea what may be wrong?"},"comment":{"url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/comments/373774325","html_url":"https://github.com/Aymkdn/SharepointPlus/issues/101#issuecomment-373774325","issue_url":"https://api.github.com/repos/Aymkdn/SharepointPlus/issues/101","id":373774325,"user":{"login":"beruken","id":8451986,"avatar_url":"https://avatars3.githubusercontent.com/u/8451986?v=4","gravatar_id":"","url":"https://api.github.com/users/beruken","html_url":"https://github.com/beruken","followers_url":"https://api.github.com/users/beruken/followers","following_url":"https://api.github.com/users/beruken/following{/other_user}","gists_url":"https://api.github.com/users/beruken/gists{/gist_id}","starred_url":"https://api.github.com/users/beruken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beruken/subscriptions","organizations_url":"https://api.github.com/users/beruken/orgs","repos_url":"https://api.github.com/users/beruken/repos","events_url":"https://api.github.com/users/beruken/events{/privacy}","received_events_url":"https://api.github.com/users/beruken/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T16:46:17Z","updated_at":"2018-03-16T16:46:17Z","author_association":"NONE","body":"`$SP().list(\"\").startWorkflow({workflowName:\"Create` New Product\", parameters:[{name:\"TaskUID\",value:\"123465798\"},{name:\"TaskID\",value:\"101\"},{name:\"TaskName\",value:\"Fix EPMS\"},{name:\"Project\",value:\"0000\"},{name:\"ProjectID\",value:\"3\"},{name:\"EstDate\",value:\"2/3/2018\"},{name:\"TaskStart\",value:\"2/3/2018\"}]});\r\nreturn;\r\nPromise.all([\r\n\t$SP().list(\"Product Sheets\", \"http://mysite\").startWorkflow({ID:1178,workflowName:\"Create Product Sheet\", parameters:[{name:\"TaskUID\",value:\"123465798\"},{name:\"TaskID\",value:\"101\"},{name:\"TaskName\",value:\"WTF new task\"},{name:\"Project\",value:\"0000\"},{name:\"ProjectID\",value:\"3\"},{name:\"EstDate\",value:\"2/3/2018\"},{name:\"TaskStart\",value:\"2/3/2018\"}]})\r\n     ]);\r\n`"}}
{"actor":{"display_login":"beruken"}}