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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans