We have a requirement to create an Item in a list via the workflow. this works fine, if both the lists are in the same Site Collection. In this scenario, we have 2 Site collections and when a workflow is run on an Item in a list which exists in Site A, we need to create an Item in another list which exists under Site B.
I am trying to use the 'Call Web Service' Action and using the 'UpdateListItems' Method to add a new Item. The XML I use is as below and have tried with many variants as seen on Nintex Connect and other sites.
<Batch OnError="Continue" ListVersion="1">
<Method ID="1" Cmd="New">
<Field Name="Title">This is a new Title</Field>
But no matter what I pass through, I get the below error
The remote server returned an error: (500) Internal Server Error.
I have seen suggestions to 'Encode Inserted Tokens' but still no luck. Anyone else faced similar issues. Is it possible at all to create an Item in a list in a separate site collection to where the workflow is running ? Any leads on what could possibly be the issue ?
Thanks in advance.