Loading 2 REST Models at the same time is causing an Bad Request error

Brayden SmithBrayden Smith ✭✭✭
edited July 3, 2017 in Questions
I have two REST models configured on a page. The first one merges in data from a Salesforce model to query the REST model. The second one uses a value from the first REST model to query data.

If I load the first one, and then manually query the second model using a table global action, I don't get an error. But if I have both configured to load on page load, and causes an error for both.

Any direction on this would be great.


Comments

  • edited November 1, 2016
    The user and all related content has been deleted.
  • Brayden SmithBrayden Smith ✭✭✭
    edited July 3, 2017
    That is correct. The first model does not return data in enough time for the second model to use. What I've done as a workaround is inserted separate query actions for each model.

    It would be ideal if I didn't have to do this, because it becomes pretty tedious trying to make sure I'm querying all the right models at the right time (based on when tab is first shown).
  • edited November 1, 2016
    The user and all related content has been deleted.
  • edited November 1, 2016
    The user and all related content has been deleted.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!