Skip to Content
0
Feb 13, 2019 at 09:19 PM

How to update task at category 57 using TodoEntryV2 entity

90 Views

Sample task payload:


{
"__metadata": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(31839M)",
"type": "SFOData.TodoEntryV2"
},
"todoEntryId": "31839",
"lastModifiedDateTime": "/Date(1550034000000+0000)/",
"dueDate": "/Date(1559966400000+0000)/",
"todoEntryName": "To-do Item from SN",
"categoryLabel": "ServiceNow",
"completedDateTime": null,
"mobileLinkUrl": null,
"subjectId": null,
"createdDate": "/Date(1550034000000+0000)/",
"linkUrl": "http://irondome04.lab3.service-now.com:2017/esc?sysId=SNTodoUniqueIdentifier",
"formDataId": null,
"categoryId": "57",
"status": 2,
"userNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(31839M)/userNav"
}
},
"recruitingJobOfferNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(31839M)/recruitingJobOfferNav"
}
},
"formContentNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(31839M)/formContentNav"
}
},
"wfRequestNav": {
"__deferred": {
"uri": "https://apisalesdemo4.successfactors.com:443/odata/v2/TodoEntryV2(31839M)/wfRequestNav"
}
}
}

If I want to edit this task using upsert / merge / replace operation, what should be the uri and request payload we should invoke with? Tried couple of options, but nothing helped.