cancel
Showing results for 
Search instead for 
Did you mean: 

Resolve oData read request immediately

0 Kudos

I'm trying to implement an oData read and create right after, dependent on the results of the read request.

The way it seems to work is that all read and create requests get resolved at once in the end so I dont have the read results before calling create. How do I get read results immediately?

I tried making it work with promises but I couldnt find a way yet.

thalesvb
Active Contributor
0 Kudos

Have you remembered to use success callback? They are only executed after HTTP response, then you have data readily for use in your create operation.

How did you code those two operations? Do you mind to upate your question with it?

0 Kudos

Yes that is how I did it. It was my first time nesting a create call in a success callback so I thought that was how it was supposed to work, but today I discovered a typo that caused all the confusion..

Thank you for the help

Accepted Solutions (0)

Answers (0)