Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

strange state update on "letter" entity

(0) ShareShare
ReportReport
Posted on by 2,379

Hi all,

We use letter activity entity for SMS integration and I have a strange "state update" some of my records.

"SYSTEM" user update just "statecode" and break my record state/status matching, so my record status changed to "cancelled (2) - draft (2)"

I got this sql command from trace log data

update [ActivityPointerBase] set [StateCode]=2, [ModifiedOn]='06/07/2017 09:37:55', [ModifiedBy]='SYSTEMUSERID', [ModifiedOnBehalfBy]='MY USER ID' where ([ActivityId] = 'ACTIVITY ID')

My environments is MS CRM 2015 7.0.0.3543 (DB 7.0.0.3543)

Do you have any idea?

*This post is locked for comments

  • Verified answer
    Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: strange state update on "letter" entity

    I found reason after some deep digging on letter and related entities.

    It occurs if letter (activity) 's "regardingobject"'s state/status changes and if activity is "open", SYSTEM cancel/close it.

    However there is a bug (or some overlook points) about State-Status matching, because as you can see code above just update "StateCode" on activity entity and there is no "StatusCode" mapping.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans