简体   繁体   中英

Set “from” in url on Phonecall Activity In Microsoft Dynamics CRM

I´m trying to call a url to open a phonecall activity in Microsoft Dynamics CRM by passing "directioncode" and "from" but when I pass the parameter "from" with contact Guid it doesn't work.

This Works:

MyCrmUrl/main.aspx?etc=4210&pagetype=entityrecord&extraqs=?fdirectioncode=1

This also works:

MyCrmUrl/main.aspx?etn=contact&pagetype=entityrecord&id={5bda9c95-6569-e511-80d3-000c2986cdc5}

This don't:

 MyCrmUrl/main.aspx?etc=4210&pagetype=entityrecord&extraqs=?fdirectioncode=1&from={5bda9c95-6569-e511-80d3-000c2986cdc5}

You can use the extraqs parameter and url encode the following string: fromid=?&fromname=?&fromtype=? similar to this example:

function OpenEmail(recordid, recordtypecode) {
    var params = "pId=" + recordid + "&pName=&pType=" + recordtypecode;
    params += "&partyid=" + recordid + "&partyname=&partytype=" + recordtypecode;
    var url = "/main.aspx?etc=4202&pagetype=entityrecord&extraqs=" + encodeURIComponent(params);
    url = Xrm.Page.context.prependOrgName(url);
    window.open(url);
}

found here: https://community.dynamics.com/crm/b/hardworkdays/archive/2014/01/12/ms-crm-2011-2013-open-new-email-form-with-to-and-regarding-fields-prefilled

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM