Hello All,
I have a requirement to update case subject using C# code dynamically.
We have created a field i.e., Service which relates to out of box Subjects as shown below. We need to set the field value to either of the options using C# code. Any code help or pointers will be helpful. Looking forward to your inputs.
Thank you.
Regards,
Mehboob
Hi,
you can refer below article on how to construct query to retrieve records. Remember you have to change the fetchxml , you can use advanced find to do that.
[View:https://msdn.microsoft.com/en-us/library/gg328117.aspx]
Hello Fun,
Thank you for reverting. Sure will try and check. Can you also tell me how to retrieve the subjectid?
Hi,
subject is a lookup.
So use below code to set it.
Entity case= new Entity("incident");
case["subjectid"] = new EntityReference("subject", "Place your subjectid in here");