Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Maps on custom entities

(4) ShareShare
ReportReport
Posted on by 1,083

Hello Community Experts,

I have a custom entity and i want the map to show up based on the data entered in address field

I tried below links but it shows error like Error loading form control

https://butenko.pro/2013/10/31/microsoft-crm-2013-adding-standard-bing-map-control-to-forms-of-custom-entities/

https://xrmadventuretime.com/tutorials/show-map-with-pin-in-dynamics/

How do i achieve this requirement?

Please guide

Best Regards!

  • Inogic Profile Picture
    462 on at
    Maps on custom entities
    Hey Sumaira,

    Hope you got a solution, if not, do have a look for certified geo-analytical solutions for Dynamics 365 that integrate it with Bing/Azure Maps. Pick one that can seamlessly integrate with Power Apps and Dataverse. You can then have your custom entities and map them with accurate latitudes and longitudes easily. Give it a try!
     
    Thanks,
    Sam
  • Suggested answer
    AppJetty Profile Picture
    1,019 on at
    RE: Maps on custom entities

    Hello, sumaira

    If you facing problem in maping record in dynamicscrm . here I'm share references. i hope it will help you.

    https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/262153/bing-map-customization-on-custom-entity-form

    Dynamics map integration.

  • Sumaira Noor Profile Picture
    1,083 on at
    RE: Maps on custom entities

    Thanks again for the response

    I would  like to try but since i dont know much about web resource and about PCF i was trying to take he help of those links

    If you could please guide me on below it will be very helpful

    I'm trying using this link

    xrmadventuretime.com/.../

    But i don't know where to add the below code

    <controlDescriptions>
        <controlDescription forControl="{deadbeef-1701-54d2-09be-35295876ca8a}">
            <customControl id="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}">
                <parameters>
                    <datafieldname>msdyn_name</datafieldname>
                </parameters>
            </customControl>
            <customControl formFactor="0" name="MscrmControls.Map.MapControl">
                <parameters>
                    <value>msdyn_name</value>
                    <mapSourceSwitch isGroup="true" static="true">CoordinatesGroup</mapSourceSwitch>
                    <latitude>msdyn_latitude</latitude>
                    <longitude>msdyn_longitude</longitude>
                    <addressEditableSwitch isGroup="true" static="true">isAddressEditableYesGroup</addressEditableSwitch>
                    <outputLatitude>msdyn_latitude</outputLatitude>
                    <outputLongitude>msdyn_longitude</outputLongitude>
                </parameters>
            </customControl>
            <customControl formFactor="1" name="MscrmControls.Map.MapControl">
                <parameters>
                    <value>msdyn_name</value>
                    <mapSourceSwitch isGroup="true" static="true">CoordinatesGroup</mapSourceSwitch>
                    <latitude>msdyn_latitude</latitude>
                    <longitude>msdyn_longitude</longitude>
                    <addressEditableSwitch isGroup="true" static="true">isAddressEditableYesGroup</addressEditableSwitch>
                    <outputLatitude>msdyn_latitude</outputLatitude>
                    <outputLongitude>msdyn_longitude</outputLongitude>
                </parameters>
            </customControl>
            <customControl formFactor="2" name="MscrmControls.Map.MapControl">
                <parameters>
                    <value>msdyn_name</value>
                    <mapSourceSwitch isGroup="true" static="true">CoordinatesGroup</mapSourceSwitch>
                    <latitude>msdyn_latitude</latitude>
                    <longitude>msdyn_longitude</longitude>
                    <addressEditableSwitch isGroup="true" static="true">isAddressEditableYesGroup</addressEditableSwitch>
                    <outputLatitude>msdyn_latitude</outputLatitude>
                    <outputLongitude>msdyn_longitude</outputLongitude>
                </parameters>
            </customControl>
        </controlDescription>
    </controlDescriptions>

    can you please guide?
    Best Regards!
  • Community Member Profile Picture
    on at
    RE: Maps on custom entities

    Well since both are unsupported customizations there are many things that could go wrong, from a simple XML tag missing to a wrong Id (There are lots of Guids that you need to make sure are correct here). Determining the cause would require checking your code to debug the issue...

    I strongly suggest using a real web resource or PCF component in this case.

  • Sumaira Noor Profile Picture
    1,083 on at
    RE: Maps on custom entities

    thanks for the response @JairoP

    Can you please suggest me why I'm getting the  Error loading form control error even after following the below links?

    Its quite urgent requirement

    butenko.pro/.../

    xrmadventuretime.com/.../

    Please Advise!

    Best Regards!

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Maps on custom entities

    Hi Sumaira,

    Bing maps are restricted to a set of entities in CRM that doesn't include "custom entities". I would say that you have 2 options here, either build a web resource (the old-still-valid way) or using a PCF component (the new trendy way).

    As an example of the web resource I found this one (it might be outdated):

    blogs.bing.com/.../

    For PCF I found a couple (already built):

    pcf.gallery/categories

    Check it out and please mark this as answered if it solved your question.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans