We have an internal API that we use in our forms in Nintex Workflow, via a custom Xtension. In the form, we create External Data variable and Data Lookup controls to allow the user to use the API.
Users can type in an ID of a record into the form control and it does the lookup and returns a data set of results. We are wanting it to handle the following scenarios:
- The Lookup is in progress
- The Lookup completed and returned no results
- The Lookup completed and has a partial data set of results (1 or more rows of results, but some of the columns are empty)
- The Lookup completed has a full data set of results.
So far, we can only successfully implement #2 and #4.
For #1, the problem is that we can’t get the rule to know the difference between “waiting for results” and “no results found.”
For #3, the problem is that we can’t get the rule to know the difference between “some columns are empty” and “no results found.”
I think the solution might involve something with using the Status Code returned by the API.
Has anyone had any success implementing that in the JSON Xtension configuration file?