can workflow change the record value if the record...
# ask-stanley-ai
c
can workflow change the record value if the record is locked? how to unlock the locked workflow?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that a workflow can indeed change the value of a locked record. However, the lock only applies to the current state of the workflow. If the record is moved to another state that does not have a Lock Record action, it should be unlocked. To unlock a record that has been locked by a workflow, you would need to modify the workflow. This could involve moving the record to a state without a Lock Record action, or potentially altering the workflow's actions or conditions to allow for the record to be unlocked. In terms of identifying if a record is locked by a workflow via SuiteScript, it seems there isn't a direct way to search for locked records. One suggested workaround is to edit the workflow to set a custom checkbox to indicate the record is locked. This checkbox can then be used as a search condition. Alternatively, if you attempt to load a locked record, you will receive an error which you can catch. This can be used as an indication that the record is locked. Please note that these solutions may require modifications to the workflow, which should be done with caution and proper understanding of the workflow's functionality and dependencies. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.865396559
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864070117
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.861821055
Please provide your feedback on this answer.