on 02-13-2019 8:21 PM
TodoEntryV2 - GET Method's response payload has few tasks with SubjectId null. One such response payload below:
{
"__metadata": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)",
"type": "SFOData.TodoEntryV2"
},
"todoEntryId": "23951",
"lastModifiedDateTime": "/Date(1351396800000+0000)/",
"dueDate": null,
"todoEntryName": "Complete 360 Evaluation",
"categoryLabel": "Collect 360 Feedback",
"completedDateTime": null,
"mobileLinkUrl": null,
"subjectId": null,
"createdDate": "/Date(1351396800000+0000)/",
"linkUrl": null,
"formDataId": 7538,
"categoryId": "2",
"status": 2,
"userNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)/userNav"
}
},
"recruitingJobOfferNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)/recruitingJobOfferNav"
}
},
"formContentNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)/formContentNav"
}
},
"wfRequestNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)/wfRequestNav"
}
}
}
1) Are these the tasks which are not assigned to any user?
2) As per documentation "Subject ID of the to-do item. The subject of a to-do item can be a person or other non-person entities". How can we identify the tasks with subjectId - non person entity?
3) We can get the userId information via the userNav's uri (https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(23951M)/userNav), but invoking this for every task will lead to performance issue. Are we required to get user information this way?
Hi Sr,
Our expectation / requirement is to pull all the tasks and show them in the todo screen if it is assigned to the logged in user.
For this use case, we query with subjectId (as per documentation, it points to the person or other non-person entities) and show in the todo screen when the logged in user navigates to the todo screen.
We plan to extract: todoEntryId, todoEntryName, dueDate, linkUrl and subjectId.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Harshita,
What is your expectation from this API or what excatly you want to extract and also better to explain your sceanrio bit so that we can try to andwer your query.
Regards,
Sr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.