我试图通过传递“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}
答案 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();
}
}
}