Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

setstate issue

$
0
0

Hi All,

I'm trying to update the email which is recieved from router,currently email state will be completed,i would like to reopen the email and assign to others for further process....

here the code:

 SetStateRequest setStateRequest = new SetStateRequest()

                {
                    EntityMoniker = new EntityReference
                    {
                        Id = email.Id,
                        LogicalName = email.LogicalName
                    },
                    State = new OptionSetValue(0),
                    Status = new OptionSetValue(1)
                };
                service.Execute(setStateRequest);        

plugin executed successfully but with no changes...

statecode is 1(compelted) and status 4(recieved)...


Thanks & Regards Vijji


Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>