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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

PCF control for auto address completion using bing map search by zipcode

(0) ShareShare
ReportReport
Posted on by 55

I want to search it by postal/zip code but not able to find find module which includes zip code

 Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', {
                    callback: () => {
                        //show Maximum results Limits and country code
                        var options = { maxResults: 10, countryCode: countryCodeValue };
                        var manager = new Microsoft.Maps.AutosuggestManager(options);
                        //manager.attachAutosuggest(`#searchBox-${this.uniqueId}`, `#searchBoxContainer-${this.uniqueId}`, (suggestionResult) => {
                        manager.attachAutosuggest('#searchBox-' + _this.uniqueId, '#searchBoxContainer-' + _this.uniqueId, (suggestionResult) => {
                            _this.street = suggestionResult.address.addressLine;
                            _this.city = suggestionResult.address.locality;
                            //this.county = suggestionResult.address.district;
                            _this.state = suggestionResult.address.adminDistrict;
                            _this.country = suggestionResult.address.countryRegion;
                            _this.zipcode = suggestionResult.address.postalCode;
                            _this.value = suggestionResult.formattedSuggestion || "";
                            _this.notifyOutputChanged();
                        });
                    },
                    errorCallback: () => { alert("error!!"); }
                });
I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Priyanka Maru

    You should need to elaborate more.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Priyanka Maru Profile Picture
    55 on at

    I want my PCF control to suggest me address of only those location which zipcode I have entered in "search by zipcode" field

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans