• Saheli Chatterjee
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
sforce.interaction.screenPop('/https://cc.cs8.visual.force.com/apex/VFPageName?accountID=001L000000oxaho#void');

What would be the correct syntax to load a VF Page on sceen pop?
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.
Hi ,

My requirement is to display 3 different colours and shapes of Tool Tip based on a certain value of a field (Other that X/Y fields)
Is that feasible through JS?

function renderTooltip(data, item) {

var Data = item.value[1];
var TestData = item.storeItem;

// How to proceed?
}
I'm new to JS and not sure how to proceed with this . Any help ?
I googled this and came across similar questions with no fruitful explanation.
Hi,  I receive the following error in a test class but have not been able to repeat them in non test running scenarios.

"System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. 
A flow trigger failed to execute the flow with version ID 301O00000008hM6. 
Contact your administrator for help.: []"

Does anyone know if there could be an issue running flows in test class contexts but not otherwise?

Thanks.