Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by Microsoft Employee

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
    Mahendar Pal 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
    RaviKashyap 55,410 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans