on 07-20-2022 11:25 AM
Hello Experts,
I have a below EXPAND EntitySet defined query. So when we do a sync then this query is getting called multiple times in a single sync cycle like 6 times. And each time the data is same in all the calls. So I wanted to know how should we avoid the odata framework to call the $expand multiple times.
Do we need to do something in tbe BE or in the FE?
/sap/opu/odata/sap/Ztest_SRV/OpportunitySet?$expand=ProjectLeader,ProjectMembers,ProjectResponsible,SalesProspect&!deltatoken='20220720102613'
I doubt that !deltatoken is supported in conjunction with $expand. (I will have to check this though)
So the question is whether you really need a delta request which contains newly created, updated and deleted items or if only newly and updated entries are sufficient.
If the latter is true you could introduce a property last_changed_at for the entity OpportunitySet.
Then you could implement your service such (if possible) so that this field gets updated if any of the dependend entities gets updated.
Then a simple $filter on this property would limit the results to those opportunities that got newly created or updated.
Kind regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Andre,
Thanks for the reply.
We have a separate DELTA request for OpportunitySet and for its relationships. Thie request is purely only for the Initial load.
So we need to check if !deltatoken is supported in conjunction with $expand. Can you guide us where we can check this if its supported or not any link or help.com
Regards
Hemant
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.