在Microsoft Dynamics CRM中的Phonecall活动中的URL中设置“from”

时间:2015-10-14 15:55:19

标签: c# dynamics-crm-2011 dynamics-crm dynamics-crm-2013 xrm

我试图通过传递“directioncode”和“from”来在Microsoft Dynamics CRM中调用网址来打开电话通话活动,但是当我从“”传递参数时 strong>与联系Guid 它不起作用。

本作品:

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

这也有效:

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

这不:

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

1 个答案:

答案 0 :(得分:1)

你可以使用extraqs参数和url编码以下字符串:fromid =?& fromname =?& fromtype =? 类似于这个例子:

public static void main(String[] args) {

    FileReader in = null;
    FileWriter out = null;
    File fp = new File("D:/readFrom.txt");
    Scanner sc = null;
    try {
        sc = new Scanner(fp);
        String str = "";
        while (sc.hasNext()) {
            str = sc.next();
            if (str.contentEquals("Coding")) {
                System.out.println(str);
                if (sc.nextInt() == 1) {
                    System.out.println("Coding is set.");
                } else {
                    System.out.println("Coding is not set.");
                }
            }
        }
    } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } finally {

        try {
            if (out != null)
                out.close(); // you should close it on finally
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        try {
            if (in != null)
                in.close(); // you should close it on finally
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        try {
            if (sc != null)
                sc.close(); // you should close it on finally
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

在此处找到: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