I am trying to pull back user profile data using the
I can run it one time and get the correct results, but when I try ot rerun it a second time, I get a "statuscode 429 message Rate lImit is exceeded. Try again in X seconds". Once I wait for up to 120 seconds I can run it again. I have seen similar post, but no resolution. Can you give me some insight on this limit...what triggers it...and how I can get around it?
I am not able to reproduce this issue on my side.
For a test, I create the connection to Office 365 Users, add a Text input control and a Label control, set the Label control’s Text property= Office365Users.UserProfile(TextInput1.Text).Mail.
Then run the app. I enter different email addresses several times in the Text input control, but I don’t get the error message even I try to return it a third time.
Are you combining the Userprofile function with other functions? If yes, please provide more details on it.
I will try to reproduce this issue on my side.
If possible, please provide your Session ID for a further investigation.
No, I am not trying to pull in any other functions. The session ID i get is "2c9d8fd7-7dd8-569b-37a3-926d575d193a".
All I'm trying to do is create an Employee Look-up app where I have the user enter an email and then have the app display their name, photo, and phone number.
I'm connecting to O365Users an then using the following functions
The first and sometimes the second search works, but then I start getting the
Office365Users.UserProfile failed: ("statusCode"=429","message". Rate limit is exceeded. Try again in xx seconds)
Not sure why.
Can you try only run it if the textInput.text is not blank?
If(IsBlank(textINput.text), "", O365UserProfile(textInput.text).Displayname)
The issue you are running into is that too many calls are going out from your app to the Office365Users connector and you are hitting the limits on it.
My suggestion will be to reduce the number of calls being made in the app, I will do something like:
Set(userProfile,Office365Users.UserProfile(textInput.Text))which will cache the user details in the userProfile variable
Another suggestion, have you tried looking at the Org Browser template?
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
Fill out a quick form to claim your user group badge now!
Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities
Features releasing from October 2019 through March 2020
Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.
Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications