i have a workflow on "Site 1" which uses a rest call to update a list item on 'Site 2'. i have followed many sites, solutions etc. but nothing seems to work. I keep getting this error:
{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The parameter __metadata does not exist in method GetById."}}}
This is my Request header:
- Accept= application/json;odata=verbose
- Content-Type= application/json;odata=verbose
- X-RequestDigest= Variable:RequestDigest
- X-HTTP-Method= MERGE
- IF-MATCH= *
__Metadata header:
- type= SP.Data.LISTNAMEListItem
Request content:
- __metadata= Variable:__metadata header
- Title= Modified by workflow
In the actual call:
Address: https://SITE/SITE 2/_api/web/lists/GetByTitle('LIST ON SITE 2')/items(3)
Request type: POST
I need some assistance in resolving this as I have been at it for some time and haven't come got any positive results as yet. Has anyone experienced this issue before? if so, how did you resolve it?