10-26-2021 08:15 AM
Hi,
I'm looking what you need to do to lookup values in a Sharepoint list, and et them into variables for a recipe.
I can search the list, and see the values in the Job, but I can't seem to access them.
10-26-2021 11:36 AM
Hi,
I pasted this into the response body:
{
"name": "project",
"type": "string",
"optional": true,
"label": "Project",
"control_type": "text"
}
But I'm still not ableto pick up the value from the sharepoint list into a variable
10-26-2021 11:25 AM
10-26-2021 11:31 AM
I want to compare it with the part in the filename to valicate if the filename is correct.
Say filename is BC12324-XX-YY-Z-BQ-A-001 the BC1234 is project.
In the Sharepoint list I want to pick up the Project, and if Projectcode from filename exists in projectcode from Sharpeoint, then it's okay.
10-27-2021 01:32 PM
10-26-2021 12:12 PM
Roland, the fields you have set up in the response body are not matched with the API response.
Copy the JSON by clicking on the "Copy JSON" button of the following screen:
After copying JSON, go to the Custom Action.
Clear the Response body you have setup.
Then click to "Use JSON" from Response Body field.
Popup will appear.
Remove the Empty Brackets from "JSON Sample" area.
Paste the JSON here
Click to next > Then Click to "Generate Schema"
------
By following these steps, you will get the API response variables to the next steps, and use it further for comparision.
P.S. If your response may contain an array of data, then you also need to do a Loop (Repeat action) to walk through each record.