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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.05.2020, 11:11   #1  
Blog bot is offline
Blog bot
Участник
 
23,057 / 786 (73) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1356: Handle mandatory autonumber fields in automation
Источник: https://crmtipoftheday.com/1356/hand...-in-automation
==============

The usual workaround for dealing with business required fields when creating records in automation is to make them non-required, deal with the automation and then switch the required option back on.

Now, add an autonumber on top of that. That’s right, you want the mandatory field to be blank so that the generator kicks in. “Who would make an autonumber field a business required one?!” you’d ask and be absolutely right. But someone designing salesorder entity thought they know better and made ordernumber both autonumber and business required. And, before you ask, no, you cannot change business required setting.

“What’s the big deal” – you say – “just move the field to the header and forget about it”. And you’d be absolutely right if we didn’t talk about automation. Looks like Power Automate (which you should be using) handles it graciously and does not insist on you filling in order number for new records. Workflow (synchronous it must be), however, knows better, and puts the order number under Other fields section and insists on you filling it in.

That’s the pickle I found myself in. It only shows how often do I touch out of the box Dynamics 365 Sales entities but
How on Earth people were creating salesorders in workflows all this time?!

The Enabler
Maybe I’m missing something trivial (it happened more than once before, you know) but my layman workaround is to set the field to something that is [almost] guaranteed to be empty. How about Address 2: UPS Zone of the owning user? Done!


Autonumber and I are both happy now. Of course, as my luck would have it, the client is almost guaranteed to repurpose this field next month to store Secret Santa assignee. Because, you know, who would in their mind use Address 2: UPS Zone for anything?!

Cover photo by Digital Buggu from Pexels



Источник: https://crmtipoftheday.com/1356/hand...-in-automation
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1156: Locked fields out of the box Blog bot Dynamics CRM: Blogs 0 21.08.2018 17:11
crmtipoftheday: Tip #1148: Use visual controls + calculated fields to create an in-form dashboard Blog bot Dynamics CRM: Blogs 0 08.08.2018 14:11
crmtipoftheday: Tip #1054: Hiding Field Service fields Blog bot Dynamics CRM: Blogs 0 16.01.2018 01:12
crmtipoftheday: Tip #1045: Missing fields on Dynamics 365 account form Blog bot Dynamics CRM: Blogs 0 18.12.2017 03:33
crmtipoftheday: Tip #1015: Remove mandatory and locked fields Blog bot Dynamics CRM: Blogs 0 02.11.2017 18:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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