• alok garg 17
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
HI Everybody,

API Version value seems incorrect in the opencti.js (39.0 version).

Currently It is : 
module.exports = {
    API_VERSION: 38,
    API_TYPE: 'opencti',
    sfdcIframeOrigin: null, // will be populated in during initialization
    mode: null // will be populated in during initialization
};

Expected: 
module.exports = {
    API_VERSION: 39,
    API_TYPE: 'opencti',
    sfdcIframeOrigin: null, // will be populated in during initialization
    mode: null // will be populated in during initialization
};

Please compare it from here: 
https://liveopstest2-dev-ed.lightning.force.com/support/api/38.0/lightning/opencti.js
https://liveopstest2-dev-ed.lightning.force.com/support/api/39.0/lightning/opencti.js

Regards,
Alok Garg
I am  getting technical error  while implementing the 39.0 version for lightning project.
Its happening while I am saving logs using the savelog() function. 

Error Message from salesforce: 
=========================================================================
"This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -863164446)."
=========================================================================
Technical Error description from salesforce:
=========================================================================
Uncaught Error in $A.getCallback() [Cannot read property 'record' of null]
Callback failed: serviceComponent://ui.force.components.controllers.recordGlobalValueProvider.RecordGvpController/ACTION$createRecord
throws at https://liveopstest2-dev-ed.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js:2:15
Object.eval()@libraries/force/recordLibrary/crud.js:12:306
=========================================================================

Can someone please help me to resolve this issue. 


Regards,
Alok Garg
In Open CTI API, I was using API version 38.0 since couple of months but yesterday I found that one file "api/38.0/lightning/opencti.js" has modified.

Method "SCREENPOP_TYPE" was using 6 parameters earlier and not changed to 4 parameters, below is sample code:

old SCREENPOP_TYPE function from "api/38.0/lightning/opencti.js".
======================================
        SCREENPOP_TYPE : {
            URL : "url",
            SOBJECT : "sobject",
            OBJECTHOME : "objecthome",
            LIST : "list",
            SEARCH: "search",
            NEW_RECORD_MODAL: "newRecord"
        }
======================================

Present SCREENPOP_TYPE function from "api/38.0/lightning/opencti.js".
======================================
        SCREENPOP_TYPE : {
            URL : "url",
            SOBJECT : "sobject",
            OBJECTHOME : "objecthome",
            LIST : "list"
        }
======================================
        
Still Salesforce document showing 6 parameters in SCREENPOP_TYPE function. below is the salesforce document link:
https://developer.salesforce.com/docs/atlas.en-us.204.0.api_cti.meta/api_cti/sforce_api_cti_screenpop_lex.htm?search_text=screenpop        

I'm not sure why this file has changed withing existing version, I verified latest version file "api/39.0/lightning/opencti.js" still having function with 6 parameter.

Please help me if someone facing same issue.
In Open CTI API, I was using API version 38.0 in couple of months ago but yesterday i was found they has modified the existing file 38.0 version.

API URL: 
api/38.0/lightning/opencti.js

Changed Method details: 

Earlier this file has 6 parameters, in the SCREENPOP_TYPE function.

        SCREENPOP_TYPE : {
            URL : "url",
            SOBJECT : "sobject",
            OBJECTHOME : "objecthome",
            LIST : "list",
            SEARCH: "search",
            NEW_RECORD_MODAL: "newRecord"
        }

Now, they remove two parameters "Search" and "NEW_RECORD_MODAL" and below is the syntax

        SCREENPOP_TYPE : {
            URL : "url",
            SOBJECT : "sobject",
            OBJECTHOME : "objecthome",
            LIST : "list"
        }
        
Still Salesforce document showing 6 parameters in SCREENPOP_TYPE function. below is the salesforce document link:
https://developer.salesforce.com/docs/atlas.en-us.204.0.api_cti.meta/api_cti/sforce_api_cti_screenpop_lex.htm?search_text=screenpop        

I'm not sure why they changed the existing file if they created new version 39.

Please help me if someone facing same issue.
I am  getting technical error  while implementing the 39.0 version for lightning project.
Its happening while I am saving logs using the savelog() function. 

Error Message from salesforce: 
=========================================================================
"This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -863164446)."
=========================================================================
Technical Error description from salesforce:
=========================================================================
Uncaught Error in $A.getCallback() [Cannot read property 'record' of null]
Callback failed: serviceComponent://ui.force.components.controllers.recordGlobalValueProvider.RecordGvpController/ACTION$createRecord
throws at https://liveopstest2-dev-ed.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js:2:15
Object.eval()@libraries/force/recordLibrary/crud.js:12:306
=========================================================================

Can someone please help me to resolve this issue. 


Regards,
Alok Garg