3

I am getting response in following JSON format

Affected_x0020_Program: {
results: [2]
0:  {
  __metadata: {
  id: "c6eb23d2-b6de-4f4b-a72c-052983faf36a"
  type: "SP.Data.ProgramsListItem"
}-
  Title: "Vijay"
}-
1:  {
  __metadata: {
  id: "0e2b317e-bfc9-4403-bff5-82721415982d"
  type: "SP.Data.ProgramsListItem"
}-
  Title: "Hole"
}-
-
}

How to read value of Affected_x0020_Program in SharePoint designer workflow ?

Thanks in advance.

1 Answer 1

3

First of all you need to add a "Call HTTP Web Service" action, which you might already did. Then in the "ResponseContent to" you have to assign it to a variable so that you can read from your json later.

Then you have to add a "Get an Item From a Dictionary" action where you will read from your responseContent variable.

It will show something like "Get item by name or path from dictionary (Output to item)

You will replace the item by name or path with the path of what you want from that json. In your case it would be enough if you type ProgramId.

Sorry if I explained things that you already know but you did not provide a bit more of detail. I hope this helps you. If not, please share more details

11
  • Thanks . I have already called HTTP web service and i am able to read values but problem is that when i am trying to read using 'ProgramId 'getting blank value .I think reason of blank value is 'ProgramId' contains 3 element so problem is here to read these 3 elements ? So how to read these element values in Sharepoint designer workflow? Commented Apr 13, 2015 at 6:21
  • Problem is how to read Multi select lookup value in SharePoint designer workflow using Get item ? Commented Apr 13, 2015 at 7:03
  • How to read follwoing JSON format Affected_x0020_Program: { results: [2] 0: { __metadata: { id: "2fbd598f-c7b5-4f01-baf8-7853aada5f0f" type: "SP.Data.ProgramsListItem" }- Title: "Vijay" }- 1: { __metadata: { id: "7d6d2d33-27c8-4d50-846a-bca923dfdb04" type: "SP.Data.ProgramsListItem" }- Title: "Hole" }- - } Commented Apr 13, 2015 at 12:52
  • @user3760501 - Just quick question. Are you making sure that the Variable where you are placing the ResponseContent is of type DynamicValue? Commented Apr 13, 2015 at 15:52
  • 1
    Once you have it, try this and let me know: Affected_x0020_Program/results/([%Variable:index%])/Title Commented Apr 14, 2015 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.