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 :
Power Platform Community / Forums / Power Apps / Binding to address fie...
Power Apps
Answered

Binding to address fields on contact/account

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm just playing with the PCF and noticed that I cannot bind properties of my component to the address fields (e.g. address1_line1).

 

I am able to configure address fields on the form to display the control in the UI and that binds the first property. But any other properties after that cannot be bound to address fields on contact/account. I can bind them to other SingleLine.Text fields (e.g. firstname).

 

Is this a limitation or a bug?

 

Cheers

Ollie

I have the same question (0)
  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at

    This is a known issue which has come up few times in the past too. It is being evaluated and tracked.  

     

    As a workaround you can create duplicate text fields for the address components and use the PBL/ClientAPI script to read values from these into the OOB ones.  Workflows can also be used fro data copy. 

  • Sheldon Copper Profile Picture
    200 on at

    I have also tried that, address fields on order like ship to and bill to address could be bind but for account, I am passing the logical name of the fields and retrieving their values through context.webapi.retrieve method

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the replies guys!

     

    I'll look forward to this being fixed 😉

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    @sheldoncopper73 wrote:

    I have also tried that, address fields on order like ship to and bill to address could be bind but for account, I am passing the logical name of the fields and retrieving their values through context.webapi.retrieve method


    That is interesting solution. Do you mind sharing the code for community reference as this avoids field duplication. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    FYI, I have created an Idea/Feature request for this... https://powerusers.microsoft.com/t5/PowerApps-Ideas/Enable-binding-to-OOB-Address-Fields/idi-p/302387#M26641

  • Sheldon Copper Profile Picture
    200 on at

    Hey @HemantG Just wanted to know when will we be the address bug will be fixed.

  • heitorsalatiel Profile Picture
    2 on at

    There's already a final solution for this issue ? For the solution I've been implementing, I can't use any of the workarounds presented here.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Can you please share the solution? I am unable to access the address fields from my control?

  • Sheldon Copper Profile Picture
    200 on at

    Try this way I am able to get address field value

    You have pass field logical name as input parameter then use context.webApi.retrieve to get passed parameter value to set value use context.webApi.update 

    For current entity and recordID  

    store context in a variable : let _context:any = context(since page is not declared in index declaration file you will get error)

    _context.page.entityTypeName;
    _context.page.entityId;

     

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Enable-binding-to-OOB-Address-Fields/idi-p/302387#comments

  • MJain Profile Picture
    2,450 on at

    May be I am late here but what we ended up is using the solution from this link : 

     

    https://www.magnetismsolutions.com/blog/jaredjohnson/2019/07/04/binding-to-address-fields-in-a-pcf-control

     

    Bind your address fields on the form as single line text and then open XRM toolbox and update them using the link mentioned above.

     

    Thanks

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard