Our requirement is that we need to populate expiry date only on major version document check in. In our library "Required check out" option is enabled.
Below is the workflow steps we have created:
1. Wait for checkout status change (After check in we need to trigger the workflow)
2. If version contain ".0"
3. Set field "Expiry date" to Modified + 3 years else retain the old value
4. Stop the workflow
But the above workflow ran into an error "Field cannot be updated. Item needs to be check out"
Kindly suggest some solution to achieve the requirement.