Skip to main content
Nintex Community Menu Bar
Question

SFX REST Data Source Query On Page Load vs. via Query Model Action


Forum|alt.badge.img+1

Hello,

I have a SFX skuid REST data source that queries a Snowflake REST API.  I am able to successfully get results on page load with query on page load on, but when I turn off query on page load and I add a button action to query the REST data source model, I don’t get any results.  

Rest Data Source Model - When Query on Page load is true, I get results on page load.


Query Model Button Action - When I click this button, the model doesn’t return any results when Query on Page Load is false.  Also, if I click this button after page load with Query on Page load on and there are results in my model, the data is removed and new data is not successfully replaced.  

 

Is there anything I am doing wrong with my action for querying the Rest Data source?

Translate
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+7
  • Nintex Employee
  • 120 replies
  • August 6, 2024

Hi Mason,

In regards to no query on page load and using a button, I don’t see anything wrong with your action and I would also expect it to work. Have you checked the network tab in the console to see if there is any difference between the query on page load vs when using the button?

For the query on page load and using a button, the behavior is what I would expect. When the Query behavior is Standard - Completely replace data it removes any records already in the model and replaces them with the newly queried records. From the dropdown, the other action to Get more will merge in the new with the old. Here’s a link to the docs on that.

-Matt

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 652 replies
  • August 12, 2024

Hi @MasonM have you resolved your issue?

Translate

Forum|alt.badge.img+1
  • Author
  • Novice
  • 1 reply
  • August 12, 2024

No, the issue is still outstanding.  We checked the console and the page load response vs. query model response on a button is slightly different.  We are able to confirm the data is sent with both responses, but Skuid is unable to process and render the data in the UI on the query model response.  It only works on page load.

Translate

Forum|alt.badge.img+7
  • Nintex Employee
  • 120 replies
  • August 19, 2024

Hi @MasonM ,

Is the same data in the network response in both scenarios, and is there data in the Skuid model in both scenarios?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings