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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Maps on custom entities

(5) ShareShare
ReportReport
Posted on by 1,085

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!

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Sumaira Noor Profile Picture
    1,085 on at

    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!

  • Community Member Profile Picture
    on at

    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,085 on at

    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!
  • Suggested answer
    AppJetty Profile Picture
    1,019 on at

    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.

  • Inogic Profile Picture
    703 on at
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans