Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

SSRS filtered StateCode of Incident entity

Posted on by 70

Folks, 

Help me please!!!

I'm development Report in the support area using BIDs Dynamics CRM.... but not filtered statecode value of the incident entity.

i'm using FetchXML for the filter:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="queueitem"> <attribute name="objecttypecode" />

<attribute name="objectid" />

<order attribute="objecttypecode" descending="true" />

<link-entity name="incident" from="incidentid" to="objectid" alias="a_cf79ac6ed0e243f8b4514bbf0554999c"> <attribute name="subjectid" /> <attribute name="prioritycode" />

<attribute name="title" />

<attribute name="statuscode" />

<attribute name="ticketnumber" />

<attribute name="createdon" />

<attribute name="customerid" />

<attribute name="statecode" />

<filter type="and">

<filter type="or"> <condition attribute="subjectid" operator="eq" uiname="Dynamics 365" uitype="subject" value="{FA23C363-06B7-E611-80FC-5065F38A2901}" />

<condition attribute="subjectid" operator="eq" uiname="Dynamics CRM" uitype="subject" value="{0EA4A751-9BD8-E411-80F3-FC15B4289E3C}" />

</filter> <filter type="or">

<condition attribute="statecode" operator="eq" value="0" />

<condition attribute="statecode" operator="eq" value="1" />

</filter>

<condition attribute="createdon" operator="this-month" />

<condition attribute="customeridname" operator="not-like" value="%AX4B%" />

</filter>

</link-entity>

</entity>

</fetch>

i'm development one expression for filtered the statecode equals "1", but nothing:

=Count(Fields!a_cf79ac6ed0e243f8b4514bbf0554999c_statuscodeValue.Value = 1)

Next i using iif in the expression, but nothing:

=Count(IIf(Fields!a_cf79ac6ed0e243f8b4514bbf0554999c_statuscodeValue.Value = 1, 1, nothing))

How i have filtered incident for statecode?

*This post is locked for comments

  • Vinicius Drumond Profile Picture
    Vinicius Drumond 70 on at
    RE: SSRS filtered StateCode of Incident entity

    Hello Rasmus,

    Thank you for information.

    I really not had attention in the fields rsrs

  • Verified answer
    RE: SSRS filtered StateCode of Incident entity

    Hello,

    I can't really help with the technical parts of your expressions, but I notice that you seem to be using "statecode" and "statuscode" interchangably even though they are two different fields with different values. Are you writing the value of the "statecode" field to a variable called "statuscodeValue"? If not, this could be the source to your problems.

    (Edited for clarification)

    Regards,

    Rasmus

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans