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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.05.2020, 20:21   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1349: Calculated field from related record
Источник: https://crmtipoftheday.com/1349/calc...related-record
==============

When Marius Agur Hagelund Lind poked me with this tip I was like, duuuude, who doesn’t know that? Turns out, not a single person in my family knew that so here it is.

All yours, Marius

Here’s an oldie but goodie.

Did you know that you can use related records to calculate a field value?Well you can! Simply type in the relationship name followed by a period, then the field name of the related record.

Tada!

Nick Doelman pointed out that you can reference a calculated field on the parent record, and that could reference a calculated field on it’s parent. So you could cascade it however far you wish.

Which means you can build a “top level value” if it’s a self-referencing field.

Finale

Ever wanted to use “set value” in a business rule to geta value from a parent record? Well here’s how:
  1. Create a calculated field, name it something silly like: _internal_calculated_reference_fieldname
  2. Reference the parent record
  3. Create a business rule, set the actual field value to the calculated value
  4. Optional: set the condition to be “state = active”. This way it won’t update when the record has been deactivated.
Tîpp Jäår $0.02 + VAT

This is something I use quite often to bubble up the values, e.g. show up a parent company’s phone number and email on a contact record without the need for a quick view form.

One caveat if you start including calculated fields that use related records, into the views. They cannot be used to sort the results.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1341: Video guide to 2020 Wave 1: Time entry in Dynamics 365 Field Service Blog bot Dynamics CRM: Blogs 0 30.03.2020 14:11
crmtipoftheday: Tip #1249: Talk back from canvas to model-driven Blog bot Dynamics CRM: Blogs 0 10.04.2019 05:19
crmtipoftheday: Tip #1176: Handling the Primary Field Blog bot Dynamics CRM: Blogs 0 10.10.2018 16:11
crmtipoftheday: Tip #1127: Don’t update auto number field Blog bot Dynamics CRM: Blogs 0 05.07.2018 17:11
crmtipoftheday: Tip #1071: Extract images from Power BI Blog bot Dynamics CRM: Blogs 0 08.02.2018 05:22
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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