Hi All, i have this Jscipt web resource which I'm using on a lookup filed inside a Contact.
When an Account is selected, it gets some values from fields inside the Account and pastes them into the same fields into the Contact form, however, it pastes only the phone number, all other fields remain empty. Any help if something is wrong with the code is appreciated.
here is a picture of the fields and the logical names as per the script
regards
Kiril
Hey, thanks Mehdi,
for sure I will update the code and post the new version in an article for future references and refer to the provided article.
Great catch and thanks :)
Regards
Kiril
Hi,
I'm glad you were able to implement your Js code. However, I notice that you are using a code that is deprecated..
Please refer to this blog to update your code with the new Client API: itsfascinating.com/.../
It seems that it required clearing the browser cache after publishing the new changes, it didn't work with regular page reload, thanks Charan.
Hi Charan,
I've corrected it, but still verification required, activation date, and parent account, and the shipping method are not taken from the parentaccountid.
regards
Kiril
Hi Kiril,
Field name new_parentaccount is not within quotes.
Change it from Xrm.Page.getAttribute(new_parentaccount).setValue(object); to Xrm.Page.getAttribute("new_parentaccount").setValue(object);
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,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148