cancel
Showing results for 
Search instead for 
Did you mean: 

TodoEntryV2's Get method returns tasks with subjectId null

0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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.

Sriprasadsbhat
Active Contributor
0 Kudos

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