Symptom
-
When using sendToNextStep entity on a Performance Form, the OData API returns the following similar error:
{
"error": {
"code": "TWF_INCORRECT_PARAMETER_ERROR",
"message": {
"lang": "en-US",
"value": "No form found for sfadmin: 17351."
}
}
}
Environment
-
Performance Management OData API
Reproducing the Issue
-
You may use sendToNextStep entity to send forms to the next step. As descbied in Talent section of SAP SuccessFactors HCM Suite OData API: Reference Guide, formDataId is required which is the Document ID of the form.
- In this example, I am moving a PM form using my API account sfdmin which has access to all forms in the system and the PM form currently sits in the user test002's inbox. The exact query that I'm using is: /odata/v2/sendToNextStep?formDataId=17351L&$format=json
Cause
- The reason of this is that the form with Document ID 17351 does not currently sits in the sfadmin's inbox. Currently the system does not provide functionality to move forms that sits outside of API user's inbox.
Resolution
-
You may move the PM form by enabling the API permission for the user which has the form as per 2531388. In this case, I have enabled test002's API permission and now I am able to move the form with Document ID 17351 successfully:
See Also
-
More information regarding Permissions settings for Talent OData API can be found in 2531388.
Keywords
KBA , LOD-SF-PM-API , Webservices, OData APIs , Problem
Product
SAP SuccessFactors Performance & Goals all versions