SharePoint 2013 & Visual Studio 2015 Workflow httpsend
-
08-10-2020 - |
質問
I am using SharePoint 2013 Enterprise version. I have already configure Workflow 2013 platform.
I am creating workflow with visual studio 2105 ultimate version. What I am doing is that I am getting current item for running workflow. Based on that item property I am filtering other list (SharePoint 2013 rest api) through httpsend
and get data in json
format whcih I am storing in dynamic value variable. I am getting multiple item. When I debug the workflow I can see the data.
But now issue starts here, When I am making string by looping dynamic value but I am getting empty value.
Kindly tell me what I am doing wrong. May something I am missing :(
- Full workflow screen
- httpsend properties
- httpsend request headers
- httpsend uri
- For loop GetDynamicValueProperties variable assignment
- For Loop String Builder, but when I write the string on history I am not getting of item, just static string is coming
解決 2
Many Thank to @Shelly Coburn. Her instruction put me in right direction. Below is the way to solve the issue.
After getting httpsend we will get data as
"d" : { "results" : [] } So I reassign dynamic value to itself
- Then In define properties I gave path
- Then I use ForEach loop as my original question but now reassign direct properties as below
Bingo all works as I want, Many thanx Shelly Coburn
to putting me right direction.
Hope it can help to somebody
他のヒント
Before your foreach loop, assign a new dynamicValue to the d/results property of the GatePassDetailsProperties dynamicValue (or reuse and reassign the current dynamicValue). Then, for each item, you'll be able to get Title, Nationality, JobTitle, PassportNo as the top-level property.
Also, make sure your assignments are going to variables and not the output parameters. You'll use the variables to assign the values to the output params. The workflow design surface can be a real pain in the neck and not do what you'd expect if you try to assign to the output params directly from a GetDynamicValueProperties activity. It does work as expected when the activity for assigning a single property is used.