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

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.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    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

      
        
        
        
        
        
        
        
        
        
        
          
        
      
    

  • Ryuzaki53 Profile Picture
    44 on at

    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

    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?

  • gdas Profile Picture
    50,091 Moderator on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 96

#2
11manish Profile Picture

11manish 90 Super User 2026 Season 2

#3
ParthPatel249 Profile Picture

ParthPatel249 80

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans