Quantcast
Channel: Question and Answer » json
Viewing all articles
Browse latest Browse all 148

Retrieving List collection from a REST method within a SharePoint 2013 Workflow

$
0
0

Here is the deal.. I have a REST method that returns Generic.List<DTOSupervisor> which has to be retreved by using a HTTP Send and GetDynamicValueProperties components.

My REST method signature:

    [OperationContract]
    [WebGet(
        ResponseFormat = WebMessageFormat.Json,
        BodyStyle = WebMessageBodyStyle.Wrapped,
        UriTemplate = "GetSupervisorCollection/{employeeId}/{companyName}")]
    List<DTOSupervisor> GetSupervisorCollection(string employeeId, string companyName);

REST Json out

{"GetSupervisorCollectionResult":[
    {"Department":"IT","Email":"test@mail.com","EmployeeNumber":"00028","IsDepartmentHead":false,"LoginName":"domain\nmuhammedh","Name":"Muhammedh Naufer"},
    {"Department":"IT","Email":"tariq@mail.com","EmployeeNumber":"00051","IsDepartmentHead":true,"LoginName":"domain\tariq","Name":"Tariq Aziz"}
]}

My question is after I get the results as JSON, how can I convert it to a list of DTOSupervisor objects inside my workflow.


Viewing all articles
Browse latest Browse all 148

Trending Articles