• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🖤 BLACK FRIDAY DEALS ARE NOW LIVE! 🖤

    🔥 Enjoy an exclusive 10% discount on our LTD Plan — first-time ever offer!

    🚀 Unlock the Pabbly Plus Unlimited Yearly Plan and get unlimited access to every Pabbly application at a truly unbeatable Black Friday price.

    👉 Grab the Black Friday Offer

How do you handle the data and get the latest response when data changes?

amir

Member
I get some data from API/GET, and it always has a different get; first, it had "0", then "1," and now "2" .. in the future it might have "3" or "4" ... my question is how do I always get the latest value? Kindly advise


1688096952238.png
 

amir

Member
Here are a couple of responses that I copied by turning off Simple Response


Code:
[{"id":140,"code":"waiting-on-team","name":"Waiting on team","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-28T00:32:00Z","updatedAt":"2021-01-28T00:32:00Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":131,"code":"in-progress","name":"In Progress","displayOrder":0,"isCustom":true,"color":"#16BC9E","icon":"","createdAt":"2020-12-17T23:04:58Z","updatedAt":"2020-12-17T23:05:27Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":1,"code":"active","name":"Active","displayOrder":0,"isCustom":false,"color":"#44d335","icon":"status-new","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"}]


Code:
[{"id":1,"code":"active","name":"Active","displayOrder":0,"isCustom":false,"color":"#44d335","icon":"status-new","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"},{"id":140,"code":"waiting-on-team","name":"Waiting on team","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-28T00:32:00Z","updatedAt":"2021-01-28T00:32:00Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":131,"code":"in-progress","name":"In Progress","displayOrder":0,"isCustom":true,"color":"#16BC9E","icon":"","createdAt":"2020-12-17T23:04:58Z","updatedAt":"2020-12-17T23:05:27Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"}]


Code:
[{"id":1,"code":"active","name":"Active","displayOrder":0,"isCustom":false,"color":"#44d335","icon":"status-new","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"},{"id":141,"code":"top-priority","name":"Top Priority","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-30T21:22:04Z","updatedAt":"2021-01-30T21:22:04Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":140,"code":"waiting-on-team","name":"Waiting on team","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-28T00:32:00Z","updatedAt":"2021-01-28T00:32:00Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":131,"code":"in-progress","name":"In Progress","displayOrder":0,"isCustom":true,"color":"#16BC9E","icon":"","createdAt":"2020-12-17T23:04:58Z","updatedAt":"2020-12-17T23:05:27Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"}]


Code:
[{"id":141,"code":"top-priority","name":"Top Priority","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-30T21:22:04Z","updatedAt":"2021-01-30T21:22:04Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":140,"code":"waiting-on-team","name":"Waiting on team","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-28T00:32:00Z","updatedAt":"2021-01-28T00:32:00Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":131,"code":"in-progress","name":"In Progress","displayOrder":0,"isCustom":true,"color":"#16BC9E","icon":"","createdAt":"2020-12-17T23:04:58Z","updatedAt":"2020-12-17T23:05:27Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":1,"code":"active","name":"Active","displayOrder":0,"isCustom":false,"color":"#44d335","icon":"status-new","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"}]


Code:
[{"id":1,"code":"active","name":"Active","displayOrder":0,"isCustom":false,"color":"#44d335","icon":"status-new","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"},{"id":141,"code":"top-priority","name":"Top Priority","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-30T21:22:04Z","updatedAt":"2021-01-30T21:22:04Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":140,"code":"waiting-on-team","name":"Waiting on team","displayOrder":0,"isCustom":true,"color":"","icon":"","createdAt":"2021-01-28T00:32:00Z","updatedAt":"2021-01-28T00:32:00Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":131,"code":"in-progress","name":"In Progress","displayOrder":0,"isCustom":true,"color":"#16BC9E","icon":"","createdAt":"2020-12-17T23:04:58Z","updatedAt":"2020-12-17T23:05:27Z","createdBy":{"id":390813,"type":"users"},"updatedBy":{"id":390813,"type":"users"},"state":"active"},{"id":4,"code":"on-hold","name":"On-hold","displayOrder":10000,"isCustom":false,"color":"#24ccee","icon":"status-on-hold","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","createdBy":{"id":0,"type":"users"},"updatedBy":{"id":0,"type":"users"},"state":"active"}]
 
P

Pabblymember11

Guest
Hey @amir

Can you please elaborate on the condition which you want to achieve in the automation?
 

amir

Member
Hey @amir

Can you please elaborate on the condition which you want to achieve in the automation?

I want to get the Current Status of the Ticket through API, but when I GET data, it pulls multiple records that were previously used on Ticket. my goal is only to get data for the Current Status that way I can always get fresh data
 
Top