Get Picture's File Name

Viewing 2 reply threads
  • Author
    Posts
  • November 9, 2019 at 11:18 PM #37976

    Eddy
    Participant

    Hi Folks!

    I need to get access to the file names of stored pictures.

    In the form “customers” every customer has a picture on/in his record. In a script i need to get the name of that file.

    Using “.getFieldValue” does not help.

    Any ideas?

    Thanks in advance,

    Eddy

    November 10, 2019 at 2:07 AM #37982

    Brendan
    Keymaster

    record.getFieldValue(photo_field_id) is what you want to use.

    When you do that on a Photo field, what you get is an array of dictionaries.

    So you need to go through the array and look at each element of it. Each element is a dictionary and the dictionary contains a filename key which you can use to get the filename.

    November 13, 2019 at 9:22 AM #38028

    Eddy
    Participant

    Thanks!!!

Viewing 2 reply threads

You must be logged in to reply to this topic.