Migrated from Redmine #214 | Author: Ben Esparza
Status: Resolved | Priority: Normal | Created: 2018-08-07
Hello.
What we’d like to do is save the original provider of a new booking so that when it gets reassigned to other
providers we still have the information about who it was assigned to originally.
We have added a hidden input field called “original provider” that we set as empty and we’d like to use the
API to read the provider of a new booking and copy the provider to the “original provider” hidden field.
So far we are able to do:
- run ‘getBookings’ to get a list of booking IDs
- compare the current booking IDs to what we had last time
- for each new booking {
run ‘getBookingDetails’ and obtain the service provider
}
Now we’d like to be able to use ‘editBooking’ to set the “original provider” field but we are not sure how
to use editBooking. The API gives us the usage but we’d like to see a little more information, perhaps an
example, of how to use ‘editBooking’. Or if there is a better way to do this then please let us know.
Thank you
Ben Esparza