web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Concatenate fields of different entities

(0) ShareShare
ReportReport
Posted on by

We have a certain way to name our batches (an entity on our CRM environment) we would like to automate the process, for example, I have all the following Lookup fields for the batch entity.

- CustomerName

- ContainerSize

- FormulaCode

The entities Customer (related to CustomerName), Size (related to ContainerSize) and Formula (related to FormulaCode) have a field called Letter (CustomerLetter, SizeLetter, ContainerLetter) and what I would like to do is to concatenate the letter fields into a calculated field in the entity batch and use this field as reference.

Is this possible to do in CRM 2016? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi,

    I'm not sure if you can do it with calculated fields, but I know you can do it in a workflow with the Workflow Elements add-on (free at https://kaskela.wordpress.com). You'll set up the workflow to run on create of the batch, and when one of those three lookup fields change.

    In the workflow itself, you'll call the activity "Query – Get a Single Value" to query for the CustomerLetter field for the customer on the batch, call it a second time to get the size, and a third to get the letter. Then have an update activity that updates your batch and sets the field to {result from query 1} - {result from query 2} - {result from query 3}

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Lucas,

    You can achieve this using Calculated fields. Please refer the following links.

    community.dynamics.com/.../accessing-related-entities-fields-in-calculated-fields-formulas-in-microsoft-dynamics-crm-2015

    community.dynamics.com/.../138250

  • Verified answer
    tw0sh3ds Profile Picture
    5,600 on at

    hi,

    If these are lookups, than you should be able to do it with calculated field - just use your lookupname and after putting "." (dot) you should get all properties of entity that is in the lookup.

  • Martin Donnelly Profile Picture
    1,030 on at

    noLookupName.PNG      I believe this is incorrect -- at least for 365.

    Same error if you try to make it an argument of CONCAT().  And, of course, if you just try the lookup itself, you get a type mismatch error (lookup is not a string.)

  • Martin Donnelly Profile Picture
    1,030 on at

    Appears the problem is not the dot operator.  It's the discount list entity!  After having success with all the other lookups on my custom entity, I tested this process on an account lookup to discounttypeid.  It also fails to dereference.

    Any ideas what's special about discount lists?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans