You need to sign in to do that
Don't have an account?
Saheli Chatterjee
json.serialize to load vf page
I'm not much familiar with json.serialize functionality . Hence need help .
webService static String getAccountVF(String accountNumber) {
List<Account> accounts = new List<Account>();
String vfurl ;
for (Account myaccount : [Select Id, Name, Phone from Account where Phone= :accountNumber]){
accounts.add(myaccount);
vfurl = 'https://bb.cs8.visual.force.com/apex/AccountNewPage?accountID='+myaccount.id;
}
return JSON.serialize(vfurl);
}
This is for a demo CTI .
VF page :
if (event.shiftKey && event.which == 83) {
sforce.interaction.runApex('SoftphoneSearchController','getAccount','accountNumber=' + callFromIVRAccount, runApexAccountCallback);
callBackSearchParam = callFromIVRAccount;
REQUIREMENT : On an event - I want to load a VF Page as screen pop.
Need help on how to do that.
webService static String getAccountVF(String accountNumber) {
List<Account> accounts = new List<Account>();
String vfurl ;
for (Account myaccount : [Select Id, Name, Phone from Account where Phone= :accountNumber]){
accounts.add(myaccount);
vfurl = 'https://bb.cs8.visual.force.com/apex/AccountNewPage?accountID='+myaccount.id;
}
return JSON.serialize(vfurl);
}
This is for a demo CTI .
VF page :
if (event.shiftKey && event.which == 83) {
sforce.interaction.runApex('SoftphoneSearchController','getAccount','accountNumber=' + callFromIVRAccount, runApexAccountCallback);
callBackSearchParam = callFromIVRAccount;
REQUIREMENT : On an event - I want to load a VF Page as screen pop.
Need help on how to do that.