Cannot get Label data via API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmorgan
    Member
    • Feb 2019
    • 43

    Cannot get Label data via API

    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.
  • yuri
    Member
    • Mar 2014
    • 8845

    #2
    This endpoint provides all labels available for the user.
    Code:
    I18n
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...