on 01-05-2018 8:47 PM
I've created an extension for the TASKPROCESSING service based on the My Inbox extension documentation and trying to test it in /IWFND/GW_CLIENT. It's retrieving the metadata including the custom fields of the in the Task extension entity but TaskClassification set call is not calling the redefined method ENTITYSET_TASK where I've added logic to fill these custom fields of the task extension. Could you please help me understand why testing the GET TaskClassification set is not calling the redefined ENTITYSET_TASK and whether I am not using the correct parameters in the URL for testing.
/sap/opu/odata/sap/ZSTEST_INV_MYINBOX_SRV/TaskCollection('000003771717')
It's calling the standard runtime method of GET_ENTITY and then
ENTITY_TASK (/IWPGW/CL_TGW_EDP_TASK) but not calling the redefined method GET_ENTITYSET_TASK.
Could you please also advise on how to test the redefined CASE_EXPANDED_ENTITY method in /IWFND/GW_CLIENT.
Thank you very much Ankit, I was trying to limit the data as I have I have too many workitems in my inbox It worked with the filter;
/sap/opu/odata/sap/ZSTEST_INV_MYINBOX_SRV/TaskCollection/?$filter=InstanceID eq '000003771717' .
I've created custom Entities for Invoice Doc Header, Invoice Doc lines, Invoice Doc vendor details etc, created their Sets, Association between the Task Entity and these custom sets with InstanceID as the key. Then redefined the method
CASE_EXPANDED_ENTITY to read the Invoice document details from the backend and set them to the export parameter
ER_ENTITY. But I am not sure exactly how to test this in /IWFND/GW_CLIENT. I tried with various options of the $expand but it's not getting called, so I think I am not passing the correct criteria.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing the same issue , can u tell me how u have added the navigation properties of custom entities to the Task entity navigation properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ankit, I figured out the issue and it started working after I added the navigation properties of custom entities to the Task entity navigation properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are triggering call for a specific task via /sap/opu/odata/sap/ZSTEST_INV_MYINBOX_SRV/TaskCollection('000003771717'). Here you are passing the Task id hence Entity_Task is getting called.
In case you want to trigger EntitySet_Task use URL as /sap/opu/odata/sap/ZSTEST_INV_MYINBOX_SRV/TaskCollection
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.