Hello,
I created with studio and new field in contact. This is for the french department.
I would like to create an automatic action to use the 2 first digit of the zip code and use it as the department.
I start to study Python and try to create this code.
postal_code_1= str(zip)
departement =
postal_code_1
[0:2]
x_studio_departement =
departement
I received an error coming from the last line of the code. Have you a proposition to adapt the code ?
Thanks a lot for your help,
Julien