AlexGale
7 years agoQrew Captain
Can I use API_DoQuery to automatically relate records to different parents?
Hi,
I have a table called ORDERS. When an order is created I want the system to find a record from a separate table, RATES, which matches the values of several fields from that order. I then want to make that rate a parent record of the order.
At first I thought I could do this using a webhook that triggers an EditRecord action whenever an order is created, but I need to point it at the correct rate.
I have a fairly limited knowledge of the API, but it seems like I should be looking at a DoQuery to find the correct rate. I think I get how I would structure the query itself to find the correct record, but I don't know how to take that response and then use it in an Edit action.
I have a table called ORDERS. When an order is created I want the system to find a record from a separate table, RATES, which matches the values of several fields from that order. I then want to make that rate a parent record of the order.
At first I thought I could do this using a webhook that triggers an EditRecord action whenever an order is created, but I need to point it at the correct rate.
I have a fairly limited knowledge of the API, but it seems like I should be looking at a DoQuery to find the correct rate. I think I get how I would structure the query itself to find the correct record, but I don't know how to take that response and then use it in an Edit action.