I have a python script that analyses a spreadsheet and compares to data in ESPOCRM. When there are changes in the spreadsheet I want to update ESPOCRM with the latest values. This all works fine. But I want to put the changes that have been made into the stream. Again I can write to the stream.
My problem is notifiying the person viewing to the correct field. I cannot figure out how to get the matching label name from the API so that I can write a human readable stream.
As an example. On screen I have a label called 'Latest Activity Status'. I can modify the underlying entity which is cLatestActivityStatus via my script, but if I write to the stream I can only write
'cLatestActivityStatus has changed from X to XX'
while what I want to write is
'Latest Activity Status has cnahed from X to XX'.
I have tried lead_metadata = client.request("GET", "metadata/Lead") ,but it does not give me the label anywhere that I can see.
My problem is notifiying the person viewing to the correct field. I cannot figure out how to get the matching label name from the API so that I can write a human readable stream.
As an example. On screen I have a label called 'Latest Activity Status'. I can modify the underlying entity which is cLatestActivityStatus via my script, but if I write to the stream I can only write
'cLatestActivityStatus has changed from X to XX'
while what I want to write is
'Latest Activity Status has cnahed from X to XX'.
I have tried lead_metadata = client.request("GET", "metadata/Lead") ,but it does not give me the label anywhere that I can see.
Comment