Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I am using following Jquery code to set default value to Organization lookup field in portal page(powerapps portals).
I am trying to set account record as my default value.
But not working.
Can someone tell me what went wrong.
$("customer_name").attr("value","XXXXXXXXX"); $("customer").attr("value","42e9af18-c077-ea11-a811-000d3acb08cf"); $("#customer_entityname").attr("value","account");
1. Can your see the record in popup dialog?
2. Would name of field actually be customerid instead of customer?
,and '#' is also required for selector of first and second lines.
Please check id of input fields again for confirmation:
Following code worked for me. I gave wrong id in first line
I could able to populate lookup field value now in dev. Do I need to do same thing in other environments(SIT, Prod) also?
It depends on whether id values of three selectors in other environments can also match to corresponding id attribute of input elements.
Please open inspector with F12 to confirm them.
Now I am getting other problem.
I could not able to submit the form after I prepopulate the lookup.
I am getting following error. Don't know the reason.
An unknown failure has occurred. Error ID # [063e11a6-eb0d-4826-b40a-2ab4b43be438]
Previously it was submitting correctly when select lookup value from popup.
Your help appreciated
It's a generic error.
Can you create record in CRM directly with same lookup customer or by selecting a same customer from popup without prepopulating?
Try to troubleshoot by answer in this thread:
In addition, here is another thread which the final answer would be similar to your issue:
You can use below code to set default value in lookup field;
Also, you can pre-populate lookup field using Entity Form Metadata, below given is a reference link:
Business Applications communities