Quantcast
Viewing all articles
Browse latest Browse all 79901

CRM4 changing email owner

Hi, i am making this soap call from a custom button

it should update regarding object and owner but it works only for the regardinobject, the owner is not changing.

can someone tell me why it's not working and how can i do to solve this problem?



//Prepare the SOAP Request

       var xml = "<?xml version='1.0' encoding='utf-8'?>" +

       "<soap:Envelope xmlns:soap='schemas.xmlsoap.org/.../& +

               " xmlns:xsi='www.w3.org/.../XMLSchema-instance& +

               " xmlns:xsd='www.w3.org/.../XMLSchema& +

           authenticationHeader +

           "<soap:Body>" +

               "<Update xmlns='schemas.microsoft.com/.../WebServices& +

                   "<entity xsi:type='email'>" +

                                       "<ownerid type='systemuser'>" + newOwner + "</ownerid>" +

                                       "<regardingobjectid type='contact'>" + newRegarding + "</regardingobjectid>" +

                       "<activityid>" + targetId + "</activityid>" +

                   "</entity>" +

               "</Update>" +

           "</soap:Body>" +

       "</soap:Envelope>";

thanks in advance.


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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