Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

What is the logic behind attributes saved in target

Posted on by 645

I am using phoneCall entity, first I used my logic in phoneCallSetState and got all the data I needed, for exampeI have a costume field which called category, and I changed it when I created a new record and then I could get the category value (in c# code side) but later I took the same code  and added it to my phoneCallPostUpdate and after I changed the same field - category (but now under postupdate msg) I got NULL from the same field. I used postImage to get the data eventually but I need an explanation why I could get the data from the same field I changed in SetState but got NULL in PostUpdate?

Thanks

*This post is locked for comments

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: What is the logic behind attributes saved in target

    If your field is dirty you will get under entity's input parameter.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: What is the logic behind attributes saved in target

    Hi,

    Normally, the Target entity that is present in the InputParameters collection is not returned by querying the system, but represents the user's input. 

    in your case you stated, you were changing the same field but you got a null, are you changing the value to null?

    if it is no, share your code or some screen shot here.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans