Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Parse json response from HttpSend activity in Visual Studio workflow

$
0
0

Hi,

I have problem with parsing response of HttpSend in GetDynamicValueProperties activity. I've tried with different Paths and assign it to the String variable. For example when I put 'd/results' I'm getting exception: Cannot read DynamicJsonArray as String.

Putting 'd/results/Item[0]' gives me null.

Do I have to specify the Entity Type or can I leave it blank?

How should I parse the response? Using GetDynamicValueProperties? How to specify the path?

My response look like and I would like to get the Url value (d/results/__metadata/MyList_Value/Url):

{"d":
  {"results":         
    [{"__metadata":             
      {"id":"2b559188-6454-4c99-b797-964e94873963",        "uri":"http:\/\/server\/_api\/Web\/Lists(guid'9c546198-595e-416b-9c71-5a63084ba1f4')\/Items(1)",              "etag":"\"1\"",             "type":"SP.Data.MyList_x005f_ListListItem"},             "MyList_Value":
        {"__metadata":"type":"SP.FieldUrlValue"},                  "Description":"http:\/\/localhost:88\/",                  "Url":"http:\/\/localhost:88\/"}}         ]}}
Workflow


 




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>