Hi there,
I am trying to convert phone to opportunity by ribbon button but on clicking the convert button I get this error
Here is the log file.
TypeError: Cannot read property 'getValue' of null
at e.convertActivityClick (dev.crm4.dynamics.com/.../SalesCommandBarActions.js:2:28305)
at i.convertActivityClick (dev.crm4.dynamics.com/.../SalesCommandBarActions.js:2:18063)
at e.executeFunction (dev.crm4.dynamics.com/.../app.js
at e.execute (dev.crm4.dynamics.com/.../app.js
at e._executeIndividualEvent (dev.crm4.dynamics.com/.../app.js
at e._executeEventHandler (dev.crm4.dynamics.com/.../app.js
at Object.execute (dev.crm4.dynamics.com/.../app.js
at e._executeSyncAction (dev.crm4.dynamics.com/.../app.js
at e._executeSync (dev.crm4.dynamics.com/.../app.js
at e.executeAction (dev.crm4.dynamics.com/.../app.js
On investigating SalesCommandBarActions.js below line is causing the error
(d = a.data.attributes.get(t.MetadataDrivenDialogConstants.Subject).getValue().toString())
What can be the issue? and also is there a way i can edit SalesCommandBarActions.js system file
Thanks.
Hi parnter,
You could change the code to the following format.
var subjectObj=a.data.attributes.get(t.MetadataDrivenDialogConstants.Subject);
If (subjectObj!=null){
d=subjectObj.getValue().toString();
}
BTW, the "Salescommandbaractions" js library is an OOB js file, so I think that there may be some conflicts.
Did you have any custom workflows or other js libiaries in Opportunities? If so , you could try to disable all the custom settings and try again.
Hope it helps.
Best Regards,
Leo
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156