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 :
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

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    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>

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans