Workflows are not designed to perform an action on collections of records. A workflow is always triggered in the context of a single entity record.
However, you can develop a custom CodeActivity
. Create a workflow that is bound to the Marketing List entity. In the CodeActivity
query all Contact records related to the Marketing List and update these records.
Important: by default your workflow must complete within 2 minutes. For large data this may not be sufficient. If this is the case the preferred way to go here is creating a batch (console) program.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…