AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
CRM
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.02.2010, 15:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,492 / 847 (79) +++++++
Регистрация: 28.10.2006
Leon's CRM Musings: Auto-assigning workflow-created records to the current user
Источник: http://leontribe.blogspot.com/2010/0...d-records.html
==============

One of the 'features' of Dynamics CRM is that if you use a workflow to generate records, the owners of those records will be the author of the workflow, NOT the current user. Generally this is undesirable.

So how do we get around this? Without too much difficulty actually.

The trick is we can use the event trigger to tell us who the current user is. For example, let's say we have a workflow that creates a set of task records when a new account is created. While easy to set up, all the tasks will be owned by the workflow creator and not the user. However, as we know the user created the parent account (the event trigger), we can populate the task owners with the 'created by' of the parent account.

If the status of a record changes or the attributes are modified, use the 'modified by'. If the record is assigned, check the owner.

There you have it. A really easy way to assign workflow records to the current user and not the workflow administrator.


Источник: http://leontribe.blogspot.com/2010/0...d-records.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
CRM DE LA CREME! CRM 4.0 Disaster Recovery Blog bot Dynamics CRM: Blogs 2 26.02.2016 08:23
Leon's CRM Musings: Review of the latest Dynamics CRM Statement of Direction Blog bot Dynamics CRM: Blogs 0 01.10.2009 10:05
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05
Leon's CRM Musings: Push and Pull Marketing, CRM and Social Networking Blog bot Dynamics CRM: Blogs 3 10.03.2009 08:56
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 12:29.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.