Skip to Content

TodoEntryV2's Get method returns tasks with subjectId null

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Feb 14, 2019 at 11:53 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2019 at 12:51 AM
    -1

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.