Updating sales reps on sales orders inconsistent between Redwood UI and salesOrdersForOrderHub
Summary:
We're encountering a strange issue with updating the sales rep on some sales orders. Specifically:
- It only affects unprocessed orders that are still in draft status.
- When we submit the same personID for two different draft orders:
- One updates successfully.
- The other fails to update.
However, this problem does not occur when using Redwood forms — the update always works there. So the change request is valid; it's just failing inconsistently using the rest service via postman.
Content (please ensure you mask any confidential information):
Payload example:
Patch: /fscmRestApi/resources/latest/salesOrdersForOrderHub/OPS:300000281211418
Body: { "SalespersonId": 300000050511243 }
Response:
Bad Request Status:400
The request couldn't be completed because either it doesn't include a value for the SalespersonId attribute, or the value of 300000050511243 that it does provide isn't valid.
Tagged:
0