Hi, I’m updating the format of my persons in pipedrive but in the loop doesn’t work well I think my functions needs to return something different here is my example:
Hey @Juan_Gabriel_Fraire!
If I understood correctly, you are trying to update the phone number (format them correctly). I have created a workflow that might help you with your problem. I am using the Split In Batches node, which will split the information of each user. The information of each user is then passed one by one to the next nodes. Once the PipeDrive node finishes the execution, the next batch of data is passed to the nodes.
Hope this helps! Let me know if have any doubts with this solution. ![]()
@harshil1712, yes this workflow is cool and works fine but once I loop over the http is not executed a second time with the next 30 people.
Hey @Juan_Gabriel_Fraire, is there a particular reason you are addind the limit parameter at the end of the URL? I looked at the Pipedrive API Reference and the limit parameter is optional. Can you try making a request without the limit parameter, and see if you’re getting the desired output?
If all the users are returned then the workflow I shared earlier will work!
Let me know what results you get.
@harshil1712 they have a default limit of 100 and we have thousands of customers already. I added 30 because was better for debuggin purposes.
@harshil1712 looks like the node Split needs to be reset can I get some how if is looping to reset the node in every loop?
It should actually be possible to do that simpler like that:
So simply request all the people at once (or for testing less, set it now to 10 but you can later set “Return All”). Then split them in batches of whatever you want (in my example I did set that to 5) and then “fix” the phone number of 5 people at a time.
Here the workflow:
