Hi All,
This action:
1.56 Read Copy From HTTP (HttpClient)
EndPoint = QuerytoCopy
Method = POST
AcceptFormat = ANY
BodyFormat = application/json
Body = “{”“ids”“:[60674],”“fields”“:[”“System.AreaPath”“,”“System.TeamProject”“,”“System.IterationPath”“,”“System.WorkItemType”“,”“System.State”“,”“System.Reason”“,”“System.Title”“,”“System.BoardColumn”“,”“System.BoardColumnDone”“,”“Microsoft.VSTS.Common.StackRank”“,”“Microsoft.VSTS.Common.ValueArea”“,”“WEF_C6D4821ED2F5405789BBE989CEF6FDC7_Kanban.Column”“,”“WEF_C6D4821ED2F5405789BBE989CEF6FDC7_Kanban.Column.Done”“,”“System.Tags”“]}”
Username =
Password =
Timeout (milliseconds) = 6000
ClientCertificate = Nothing
ClientCertificatePassword = Nothing
Result = httpresult
StatusCode = httpcode
Private = False
Headers
{ Content-Type; value = application/json, Type = String, Direction = In }
Parameters
{ {ID}; value = IDtoCopy, Type = String, Direction = In }
Gives me:
{“count”:1,“value”:{“Message”:“Unexpected character encountered while parsing value: %. Path ‘’, line 0, position 0.\r\n”}}
and this action:
1.56 Add New Work Item HTTP (HttpClient) | ||
---|---|---|
EndPoint = AddNewWorkItem | ||
Method = POST | ||
AcceptFormat = JSON | ||
BodyFormat = application/json-patch+json | ||
Body = “{”“op”“:”“add”“,”“path”“:”“/fields/System.Title”“,”“from”“:null,”“value”“:[{newTitle}]}” | ||
Username = | ||
Password = | ||
Timeout (milliseconds) = 6000 | ||
ClientCertificate = Nothing | ||
ClientCertificatePassword = Nothing | ||
Result = httpresult | ||
StatusCode = httpcode | ||
Private = False | ||
Headers | ||
{ Content-Type; value = application/json-patch+json, Type = String, Direction = In } | ||
Parameters | ||
{ {ID}; value = IDtoCopy, Type = String, Direction = In } | ||
{ {newTitle}; value = TitleCopy, Type = String, Direction = In } |
Gives me:
{“$id”:“1”,“innerException”:null,“message”:“You must pass a valid patch document in the body of the request.”,“typeName”:“Microsoft.VisualStudio.Services.Common.VssPropertyValidationException, Microsoft.VisualStudio.Services.Common”,“typeKey”:“VssPropertyValidationException”,“errorCode”:0,“eventId”:3000}
Yet, both the commands with the same settings work fine in Postman.
This is quite frustrating.