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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Calculate Field

(3) ShareShare
ReportReport
Posted on by 217
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?
 
 
I have the same question (0)
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,841 Moderator on at
    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
  • Verified answer
    ArchitectMadhan Profile Picture
    458 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans