Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can we get 'followup' field value from dynamics 365 for sales into a C# console application.

(0) ShareShare
ReportReport
Posted on by

Hi All, 

I'm working on Dynamics 365 for sales and trying to get the FollowUp field value through FetchXML into C# console application. But while debugging i was unable to get the followup field value(data) which is stopping my development further. Can anyone please suggest on how to get the value either through Fetchxml or through query expression? 

My FetchXML code :

<fetch mapping="logical" version="1.0" output-format="xml-platform" distinct="false">
<entity name="incident">
<attribute name="title" />
<attribute name="ticketnumber" />
<attribute name="createdon" />
<attribute name="incidentid" />
<attribute name="caseorigincode" />
<attribute name="statuscode" />
<attribute name="statecode" />
<attribute name="prioritycode" />
<attribute name="ownerid" />
<attribute name="followupby" />
<attribute name="customerid" />
<order descending="false" attribute="title" />
<filter type="and">
<condition attribute="statuscode" operator="in">
<value>1</value>
<value>4</value>
</condition>
<condition attribute="prioritycode" operator="in">
<value>1</value>
<value>2</value>
<value>3</value>
</condition>
<filter type="or">
<condition value="30" attribute="followupby" operator="last-x-days" />
<condition attribute="followupby" operator="null" />
</filter>
</filter>
</entity>
</fetch>

*This post is locked for comments

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: How can we get 'followup' field value from dynamics 365 for sales into a C# console application.

    Hi,

    You are already having condition for null, so it seems the records you are getting have follupby value null only, recheck your data

    <filter type="or">

    <condition value="30" attribute="followupby" operator="last-x-days" />

    <condition attribute="followupby" operator="null" />

    </filter>

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: How can we get 'followup' field value from dynamics 365 for sales into a C# console application.

    Hi,

    Please ensure that there is some value in the field, if the field is blank then it would not appear in the results while debugging.

    Hope this helps.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,880 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans