web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans