I am trying to add a user to a security group via a SharePoint 2013 workflow I am currently trying to do this using the Call HTTP web service
action and I have 3 dictionary's built. All of this is done inside of an App Step.
Unfortunately I am getting an error back from the Response Content which I am having to email to myself, the error code reads:
{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified."}}}**
This is currently how my workflow looks:
My call to the web service looks like the followingand I am currently using POST as the Request Type
https://site.sharepoint.com/sites/sitecollection/_api/web/sitegroups/getbyname('group name')/users
Inside of all of the dictionary's I have the following:
The LoginName string is set to be the user who created the current item in that list. This will be the login name of that current user.
I have had this issue for over 3 days and if anyone can help I would really appreciate it.
__metadata
? Two underscores, not one.