web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

How to get entity type from multitargeted entity lookup in PowerApps portal using Javascript

(0) ShareShare
ReportReport
Posted on by
We are rendering a case in powerapps portal which has a lookup of customer type(it is pointing to both account and contact). In our scenario we want to restrict a user to select account from the portal form and for that we are trying to write a javascript on change of that field and trying to get the type associated with that lookup value.
Below is the javascript we're trying to write but unfortunately we are unable to get the type.
 
$('#customerid').change(function () {
// Log the event to the console for debugging
console.log('Change event triggered.');
// Get the selected entities
var selectedEntities = $('#customerid_entityname').val(//);
 
 
Is there  anything wrong in the script or is their any other way to find out the type of the entity.
 
 
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 88

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans