Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

On create of field value populate

Posted on by 121

Hi

we have two entity, Opportunity and Install Location. In opportunity there is install location lookup field  and one option set field. And in install Location entity all the location are available there. so when we create opportunity and when i select option set value then based on that option set value lookup filed is automatically populate from install location entity.

  • Suggested answer
    Eiken Profile Picture
    Eiken on at
    RE: On create of field value populate

    Hi,

    May I ask that weather there is a option set field on the Install location entity?

    If yes, you can use the Power Automate. The steps are as follows.

         1.Find the row in Install Location entity based on the option set field entered in the Opportunity.

    pastedimage1670916832411v1.png

         2.Update the information in Opportunity

    pastedimage1670916863619v2.png

        3.Then when you add or update one record in Opportuinty, the lookup filed is automatically populated.

    Using the automate flow, the look up field will populate only after clicking the save and refresh.

    pastedimage1670916878593v3.png

    If the Install location entity don’t contain the option set field. You can set a business rule.

    pastedimage1670916938726v4.png

    The rule is that the look up field will be set as specific value automatically when you enter the option set field.

    But this solution is tedious because you should add each rule manually.

  • Suggested answer
    Mohamed GRAIB Profile Picture
    Mohamed GRAIB 2,498 Super User 2024 Season 2 on at
    RE: On create of field value populate

    If I understand your need, you want to set automatically the lookup field based on value in the option set field ? 

    If this is your need, you can create a business rule in the opportunity table. 

    Your condition is : If the field X = Option X 

    Your action is : Set default Value : and you choose the default value that you want. 

    Tell us if this solution resolve your problem. 

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: On create of field value populate

    Hi Rahul Rathore,

    There is a column Option set on the Install location table. The same column Option set exists on the Opportunity table. Am I right?

    In case I am right then What happened when the value of 'Option set 1' is allocated to two records of Install Location? 

    What value for the install location table should be set in the opportunity table?

    For the user interface, You can use xrm-webapi.

    For the server side, You can use:

    1. Power Automate
    2. Workflow 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans