I have just set up 2013 WFs on my SP 2016 Farm.
I have subsites with news lists - and I want to be able to send certain news items from the subsites to the top of the site collection.
I have followed multiple guides, including a few existing on this site.
I have elevated permissions for the workflow, on both source and target sites.
I have made multiple attempts to create the workflow, the first being ambitious and complex.
To try and understand my issues I have simplified to a workflow where -
I create dictionary (variable name: headers) with 'accept' and 'content-type' both as strings and set to 'application/json;odata=verbose'.
I have a second dictionary(variable name: dataType) with 'type' as a string and set to SP.Data.TestNewsListItem (TestNews being the name of my test list).
I then have a third (variable name: requestContent) and final dictionary with '__metadata' as a dictionary set to variable 'dataType'. I then have 3 fields Title(string), Body(string) and Published(date) with their values preset in the dictionary.
I then make my call to "https://mysite/news/_api/web/lists/getbytitle('TestNews')/items" Http method set to 'Http Post'
When I go to properties i have: address: as above
RequestType: Http Post
RequestHeaders: set to - variable: headers
RequestContent: set to - variable: requestContent
I have logged after each dictionary build, and everything displays as it should (as far as I know).
Nothing is ever created in my 'TestNews' list.
Any help would be greatly appreciated.