Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
572 views
in Technique[技术] by (71.8m points)

dynamics crm - Using Workflow in DynamicsCRM 2016 to update all contacts in Marketing List

We use Microsoft Dynamics CRM 2016 on premise. We want to implement a workflow which updates a field of all contacts in the MarketingList. Did anyone achieve this ... How can I do this?

question from:https://stackoverflow.com/questions/65841343/using-workflow-in-dynamicscrm-2016-to-update-all-contacts-in-marketing-list

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...