cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TheRobRush
Level 8

Microsoft Translator V2

Trying to test out the translator in Powerapps. Got the old version working fine, but no matter what I use V2 in, text box label etc, it returns this error...

 

"Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app."

 

If anyone else has had an opportunity to test out the V2 translator and got it working can you share some of the syntax / methods you got it functioning with because as of now it looks to me just to not be working properly yet.

 

Here is the ms doc on the new v2, no code examples like the first one there.

https://docs.microsoft.com/en-us/connectors/translatorv2/

 

Thanks everyone

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Microsoft Translator V2

I just played with it for a while using an old project I had.  The one thing I noticed is that they swapped out the parameter order on the Translate method.  In version 1 is was (Text, Language code).  Now its (Language code, Text).  That may be where your error is coming from.  Here's the formula that works for me.

Set(Var1, MicrosoftTranslatorV2.Translate(Picker.SelectedText.Code,English.Text))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Microsoft Translator V2

I just played with it for a while using an old project I had.  The one thing I noticed is that they swapped out the parameter order on the Translate method.  In version 1 is was (Text, Language code).  Now its (Language code, Text).  That may be where your error is coming from.  Here's the formula that works for me.

Set(Var1, MicrosoftTranslatorV2.Translate(Picker.SelectedText.Code,English.Text))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

TheRobRush
Level 8

Re: Microsoft Translator V2

This worked, thanks.
I had reversed the order already, but I am guessing perhaps it was because I had the code directly in a text box.

Changing it to a set var on a button with textbox assigned the var worked perfectly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 206 members 4,366 guests
Please welcome our newest community members: