I have access to the DVLA (UK Vehicle licensing) database through an API key. The key allows a maximum call of 10 registrations per second.
I have set up a flow that will collect the data for 1 vehicle to get things started (I am new to this and only just learning the great things Power Automate can offer me). I have a list in an excel table of over 350 registrations.
I believe I can put in a loop to get the next registration, with a break to pause to keep within the 10 per second rule but what do I put in the HTTP box to pull the next registration from the excel table as opposed to being hard fixed as shown below:
Many thanks.
Andy
Solved! Go to Solution.
Hi @AbleAndyUK,
Yes I think this would be possible by adding a integer variable action to count the number of http requests and then when you hit the number 10 add a delay of a second to it. Btw, you should be able to add the registration number to the body of the HTTP post by using a dynamic value.
Beware, in this example I am using a List rows present in a table action to collect the data from Excel. I don't know how you formatted your Excel sheet?
Below is an example how you could set this up.
1. Add an initialize variable action called Count of type Integer and set the default value to 0
2. Add the registrationnumber dynamic value to the body of your HTTP action
3. Add an increment variable action and set the value to 1
4. Add a condition to check if the count variable equals 10
5. In the Yes section add a delay action of 1 second
6. Add a set variable action to reset the count variable back to 0 again
Hope this helps a bit?
Hi @AbleAndyUK,
Yes I think this would be possible by adding a integer variable action to count the number of http requests and then when you hit the number 10 add a delay of a second to it. Btw, you should be able to add the registration number to the body of the HTTP post by using a dynamic value.
Beware, in this example I am using a List rows present in a table action to collect the data from Excel. I don't know how you formatted your Excel sheet?
Below is an example how you could set this up.
1. Add an initialize variable action called Count of type Integer and set the default value to 0
2. Add the registrationnumber dynamic value to the body of your HTTP action
3. Add an increment variable action and set the value to 1
4. Add a condition to check if the count variable equals 10
5. In the Yes section add a delay action of 1 second
6. Add a set variable action to reset the count variable back to 0 again
Hope this helps a bit?
User | Count |
---|---|
93 | |
45 | |
20 | |
20 | |
16 |
User | Count |
---|---|
135 | |
56 | |
44 | |
36 | |
26 |