I have to update the layout on all debtors via the WSDL API. They all belong to the same debtor group for which I have set the new layout. However, all of the debtors have the old layout ID hard coded and not a reference to the default of the debtor group. I am looking for the simplest way in which I can update all debtors to use the default layout of their corresponding debtor group. I hope that makes sense.
I have attempted to use the Debtor_SetLayout method: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Debtor_SetLayout
However, I am unsure which layout ID to send as a parameter to set the layout to that of the debtor group. 0 gives me an error.
What is the easiest way that I can do this such that I can just update the layout of the debtor group in the future if I choose to change layout? Or do I have to "hard code" the layout ID for each debtor and thus make an update request for each debtor?
Thanks in advance.