cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OliverFlint
Level: Powered On

Binding to address fields on contact/account

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

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff HemantG
PowerApps Staff

Re: Binding to address fields on contact/account

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. 

5 REPLIES 5
PowerApps Staff HemantG
PowerApps Staff

Re: Binding to address fields on contact/account

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. 

sheldoncopper73
Level: Powered On

Re: Binding to address fields on contact/account

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

OliverFlint
Level: Powered On

Re: Binding to address fields on contact/account

Thanks for the replies guys!

 

I'll look forward to this being fixed ;-)

PowerApps Staff HemantG
PowerApps Staff

Re: Binding to address fields on contact/account


@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. 

Highlighted
OliverFlint
Level: Powered On

Re: Binding to address fields on contact/account