Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)
Under review by Community Managers

Under review

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

Creating a phone call from custom button in Contacts

Posted on by 50
Hi I have a button I created through ribbon workbench, it is on the Contacts page.
When I select the button, I would like to create a call record for that contac, fill out from and to and some lookupfield and navigate to the record.  I attempted and ran into some JavaScript problem.
 
                 /regardingobjectid_contact@odata.bind/: //contacts(/ + contactId + /)/,
                /lookupcontact@odata.bind/: //contacts(/ + contactId + /)/,
                /phonecall_activity_parties/: [
                    {
                        /partyid@odata.bind/: //systemusers(/ + userId + /)/,
                        /participationtypemask/: 1 // From
                    },
                    {
                        /partyid@odata.bind/: //contacts(/ + contactId + /)/,
                        /participationtypemask/: 2 // To
                    }
 
My issue is with the lookupcontact@odata.bind, I tried lookupcontact_contact@odata.bind but that did not work as well.  The first lookup regardingobjectid works, but I get no perotyu balue was found in the payloud.
 
Thanks for any help!
Categories:

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans