Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Retrieve stage name of an opportunity

(0) ShareShare
ReportReport
Posted on by 44

Hi all,

as in the Subject, I need to retrieve the name of the actual stage of the Opportunity (Qualified, Propose, Contract, Close) 

in c# asp.net

I'm using fetchXML to retrieve other attributes, I tried with attribute name ='salesstage', but it doesn't work.

Thanks for any help.

  • gdas Profile Picture
    50,091 Moderator on at
    RE: Retrieve stage name of an opportunity

    The opportunity record I'd,  for which you want to retrieve the stage name.

  • Ryuzaki53 Profile Picture
    44 on at
    RE: Retrieve stage name of an opportunity

    Hi Goutam,

    Thanks for your answer, so I need to refer to the entity:opportunitysalesprocess to get the information I need.

    One last question, the Guid you put in the condition value is referring to whitch id?

  • Ryuzaki53 Profile Picture
    44 on at
    RE: Retrieve stage name of an opportunity

    Hi Goutam,

    Thanks for your answer, so I need to refer to the entity:opportunitysalesprocess to get the information I need.

    One last question, the Guid you put in the condition value is referring to whitch id?

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Retrieve stage name of an opportunity

    Hi Ryuzaki,

    You may know that in dynamics 365 ,each Business process flow having  separate entity to store multiple instance of BPF for associated entity record . Which means if you are using Opportunity Sales process , you will get an entity with same name Opportunity Sales process where you can find the current stage name for the opportunity. Here in sample Opportunity Sales process  fetch XML you can use the name attributes to get the current stage name.

    pastedimage1570810707316v1.png

      
        
        
        
        
        
        
        
        
        
        
          
        
      
    

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

🌸 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…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the 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... 91

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans