on 07-13-2017 10:19 AM
Hello Team,
I have one issue in CRM My Appointment App.
In this App tile i have to display Number of Open Appointments.
so i have used this URL ,
/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/AppointmentSet/?$filter=StatusTxt eq 'Open'
But here i am not able to see only 'Open' Appointments. It will display all appointments.
I have checked in gateway Service Builder , the filed StatusTxt is filterable.
Can you please help me on this?
It seems that you are dealing with standard CRM Appointment app,
Hence I'd suggest you to debug the code in DPC_EXT as the OData service returns all types likewise OPEN, Completed, etc.
-PG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this issue solved now? I am getting a similar filter query issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deborshi,
The query you are using is correct.
/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/AppointmentSet/?$filter=StatusTxt eq 'Open'
Now, you have to check whether the filter condition you have written in your DPC_EXT is on 'Open' text. Any case mismatch will not fetch data. Also, it is important to know what error you are getting. If you are getting a correct response then probably something is wrong with your method coding.
Regards,
Saswata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deborishi,
The filter looks fine to me. Can you please check the StatusTxt value? Is it supposed to be Open or is there a different value or difference in case (upper/lower).
Good Luck !!
Thanks,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deborshi,
Try removing forward slash '/' after your entityset and try again it will work. Like below
/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/AppointmentSet?$filter=StatusTxt eq 'Open'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have tried this url pattern but its not working .
http://mtscmls2.cloudapp.net:8000/sap/opu/odata/sap/ZODATA_SD_SRV/vendorODATASet?$filter=Land1%20eq%...
Hi,
try putting $count before ?$filter, for example,
......./$count?$filter=......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.