Skip to main content

Notifications

Community site session details

Community site session details

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

Update a Field based on Actual Close Date of an Opportunity

(0) ShareShare
ReportReport
Posted on by

We have a field as "Booking Value" under Opportunity. Salespeople enter a value under "Booking Value" when they close an Opportunity as Won.

An Account can have multiple Opportunities and as a requirement for a report/View creation, we need to show the Booking Value of only the first opportunity that Won for an account. For the rest of the opportunities relating to an account, the booking value should be hidden or null. Booking Value should be shown only for the first Won opportunity of that Account.

Does anyone know how can I achieve this?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Update a Field based on Actual Close Date of an Opportunity

    To get the booking value into a view on account youll need to create a 1 to many relationship from Opty to Account - you can call it 'first booking opty' or anything really.  That would cover the view portion.

    To populate that field on the account, make a workflow that triggers when an Opty is closed as won, If parent account field - 'booking opportunity' lookup - is NULL add current opportunity, otherwise stop.

    Now you have your views able, your data is populating, but you still need to hide the field for the other opportunities.  I'm not 100% sure you can use a business rule here, but you can try it first.

    - Business rule from Opportunity, if related account booking lookup contains data - hide field on opty.

    If you cant go it with a business rule (I cant recall if you can lookup to parents) then you can do JavaScript to check this.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans