Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Calculate Field

(1) ShareShare
ReportReport
Posted on by 100
Hello,
 
On my Account form I have a calculated field called "Concatenate Account Name", and now I need to create another calculated field on the Quote Product form that looks back to the Account table and grabs the "Concatenate Account Name" value.  How can I do this?
 
 
  • ArchitectMadhan Profile Picture
    216 on at
    Calculate Field

    To create a calculated field on the Quote Product form that references the "Concatenate Account Name" from the Account table, you'll need to follow these steps:

    1. Create a Lookup Field:

      • On the Quote Product form, create a lookup field that references the Account entity. This will allow you to establish a relationship between the Quote Product and the Account.
    2. Add the Calculated Field:

      • Go to the Quote Product entity and add a new calculated field. Name it appropriately, such as "Account Concatenate Name".
    3. Define the Calculation:

      • In the calculated field definition, use the formula editor to reference the lookup field you created in step 1. You can use the following formula:
        Account.LookupFieldName.ConcatenateAccountName
        
        Replace LookupFieldName with the actual name of your lookup field.
    4. Save and Publish:

      • Save your changes and publish the customizations.

    This setup will ensure that the calculated field on the Quote Product form dynamically pulls the "Concatenate Account Name" value from the related Account record.

    If you find this solution useful, please like it and accept it as answer.


    -ArchitectMadhan

  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    2,264 Super User 2025 Season 1 on at
    Calculate Field
    Hello CU31101219-0,
     

    You're looking to create a calculated field on the Quote Product entity that retrieves a value from a related Account record. This is a common requirement and can be achieved using calculated fields in Dynamics 365. Here's a step-by-step guide:

    Understanding the Relationship:

    • Account to Quote: There's a direct relationship between the Account entity and the Quote entity.

    • Quote to Quote Product: There's a direct relationship between the Quote entity and the Quote Product entity.

    • Therefore, you can navigate from Quote Product to Quote to Account.

    •  

    Steps to Create the Calculated Field:

    1. Navigate to Quote Product Customizations:

      • Go to Settings > Customizations > Customize the System.

      • Expand Entities and select Quote Product.

      • Click on Fields.

      •  

    2. Create a New Calculated Field:

      • Click "New" to create a new field.

      • Display Name: Give your field a descriptive name (e.g., "Account Concatenated Name from Quote").

      • Name: The system will generate a logical name.

      • Field Type: Select "Calculated."

      • Data Type: Select "Single Line of Text" (or whatever data type matches your "Concatenate Account Name" field).

      • Click "Edit."

      •  

    3. Define the Calculated Field Logic:

      • In the calculated field editor, you'll define the logic to retrieve the value.

      • Condition: You can add a condition if needed (e.g., if the Quote is active). If not needed, skip this step.

      • Action:

        • Click "Add Action."

        • In the expression box, use the following syntax:

          • Quote.accountid.concatenate_account_name

          • Explanation:

            • Quote: This navigates to the related Quote record.

            • accountid: This navigates to the related Account record from the Quote.

            • concatenate_account_name: This retrieves the value from the "Concatenate Account Name" field on the Account.

        • Click "Save and Close."

        •  

    4. Add the Field to the Quote Product Form:

      • Navigate to the Quote Product form.

      • Add the newly created calculated field to the form.

      • Save and publish the form.

      •  

    5. Publish Customizations:

      • Publish all customizations. 

      •  

    6.  

    Important Considerations:

    • Relationship Existence: Ensure that the relationships between Quote Product, Quote, and Account are correctly configured.

    • Field Names: Double-check the logical names of your fields and entities.

    • Data Types: Ensure that the data types of the calculated field and the source field match.

    • Performance: For very large datasets, calculated fields can have a performance impact. Consider using other methods (e.g., plugins) if performance is critical.

    • Null Values: If the related Account or Quote record is null, the calculated field will also be null. Consider adding conditions to handle null values.

    •  

    Example Scenario:

    • If your account field is called "new_concatenateaccountname" then your calculated field action would be:

      • Quote.accountid.new_concatenateaccountname 

      •  

    By following these steps, you can successfully create a calculated field on the Quote Product entity that retrieves the "Concatenate Account Name" value from the related Account record.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,815 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,707 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans