web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SSRS filtered StateCode of Incident entity

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    Rasmus R. Aardal Profile Picture
    on at

    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

  • Vinicius Drumond Profile Picture
    70 on at

    Hello Rasmus,

    Thank you for information.

    I really not had attention in the fields rsrs

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans