Hello! So I have started to use the API.
I have read another post that is similar, but the answer wasn’t clear. I just want to make sure. Also, I have not looked into webhooks. I don’t know how to use them yet, if you think they would solve my problem, I will look into them.
Before we used to export our data manually, and I wanted to automate that.
There are some differences though, between the export and the data I get via API.
Some fields have options. Every option has an ID, and a label. When getting a deal, for some fields I get the id, for other the label. It would be nice to choose, since “Stage” : “154” isn’t so clear, compared to the label of ID 154, e.g. “Contacted”.
Here are 3 examples of fields:
- pipeline. FieldType: “double”. Shows: “id”
- Lost Reason. FieldType: “varchar_options”. Shows: “label”
- Any other custom field with options. FieldType: “enum”. Shows: “id”
When getting Dealfields I don’t even see the options for the Stage field. Am I missing something?
So, to make my export work right, one solution would be to have a dictionary (I am coding in Python), where associated to every id, I have the label. However, I would need a dictionary for every custom field. I could write a program that creates that dictionary, so that when I get a deal, instead of getting the ID, I will just pass it in the right dictionary and get the right label. But that would be pretty complicated. And I still wouldn’t find the stage options, so I would need to do that manually.
Am I missing something, or is this functionality not provided?
Thanks!