on ‎2020 Apr 02 5:30 PM
Hello all,
as usual, another question is raising while my journey through the SDK is going further.
I am using the SDK to consume SuccessFactors OData API, and it is working great. It is an incredibly powerful tool and amazing things can be done leveraging it.
However, I came across a very specific situation which is currently not supported (fairly, I have to say) by the SDK.
In SuccessFactors, we can query for effective-dated entities but the standard behavior is to return only actual records (= records valid as of today) unless two custom query parameters are present in the URL:
.../EmpJob?$select=startDate,companyNav/externalCode&$format=json&fromDate=2000-01-01&toDate=9999-12-31
The two parameters fromDate and toDate are instructing the API to actually fetch all records that are falling in the specified interval.
From the SDK fluent API, we can construct the full URL of the built query by:
EmpJob.requestBuilder().getAll().select(...).filter(...).build({}).url()
So that custom query parameters can be easily added to it by concatenation.
Question is: how can I then shoot the request with the newly defined URL? Or better...is there a way to inject custom query parameters while building the request?
Thanks a lot in advance,
Roberto.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Roberto,
that sounds like a sensible feature. We just planned to work on that, so probably we will release this feature soon. Is this time critical for you and do you still need a workaround for that in the mean time?
Regards,
Marika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.