1. Oktober 2012 16:25
var xml = "<fetch mapping='logical' version='1.0'>"
                  + "<entity name='annotation'>"
                     + "<attribute name='subject'/>"
                     + "<attribute name='notetext'/>"
                     + "<attribute name='filename'/>"
                     + "<attribute name='annotationid'/>"
                  + "<link-entity name='msdyn_postalbum' alias='aa' to='objectid' from='msdyn_postalbumid'>"
                  + "<filter type='and'>"
                     + "<condition attribute='ownerid' operator='eq-userid'/>"
                  + "</filter>"
                  + "</link-entity>"
                  + "</entity>"
                  + "</fetch>";"https://crmserver/organisation/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId=ca86c662-4a06-e211-97e8-000c29a0a610" //&CRMWRPCToken=Hg2CrgsIEeKX6AAMKaCmEJpO2UeEUCEqVPbIXLdq0K8ShwRzDn4tf7ksRO0csgS1&CRMWRPCTokenTimeStamp="123456788"2. Oktober 2012 14:58
    var xml = "<fetch mapping='logical' version='1.0'>"
                      + "<entity name='annotation'>"
                         + "<attribute name='documentbody'/>"
                         + "<attribute name='mimetype'/>"
                      + "<link-entity name='msdyn_postalbum' alias='aa' to='objectid' from='msdyn_postalbumid'>"
                      + "<filter type='and'>"
                         + "<condition attribute='ownerid' operator='eq-userid'/>"
                      + "</filter>"
                      + "</link-entity>"
                      + "</entity>"
                      + "</fetch>";
src = "data:" + user[i].mimetype + ";base64, " + user[i].documentbody