Skip to main content

Notifications

Dynamics 365 general forum

PhoneCall to opportunity conversion error

Posted on by 55

Hi there,

I am trying to convert phone to opportunity by ribbon button but on clicking the convert button I get this error

pastedimage1561987155382v1.png

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.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: PhoneCall to opportunity conversion error

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans