That is really amazing thank you for amazing help
Hi KRYPTON,
I opened its url and get the same error with yours. Then I find this blog(“Cannot read property ‘’ of null”–Error while calling an action from a WebResource in Dynamics 365 - Xrm.WebApi.execute - Debajit's Power Apps & Dynamics 365 Blog (debajmecrm.com)) and use the following code to test:
Page for XRM WEBAPI Create Record in Student Entity Create Record in Student Enitity
This is testing page for creating record by XRM.webapi.Create Record for Lead Enitity.
Subject
Company Name
First Name
Last Name
Business Name
Date of Birth
Order Type : 192350000
And it can work:
OMG! what silly mistake I have done.
Thanks Steve Zhao for this amazing effort.
just want to know
is not possible to make this happened directly new webpage. I mean what if i dont want to put web resource inside from. and try to opened with its url like in my case it is
krypton.dynamics.com/webresource/create-records.html
Hi KRYPTON,
I have tested your code on my side. When I press F12, I got the error xrm is not defined.
So you need to change xrm.Utility.alertDialog("ID : " + result.id); to Xrm.Utility.alertDialog("ID : " + result.id);(Spelling mistake)
After changed this, it can work fine.
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... 290,532 Super User 2024 Season 2
Martin Dráb 228,501 Most Valuable Professional
nmaenpaa 101,148