Issue with copying fileId to filesIds in attachment field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBoss
    Member
    • Nov 2023
    • 86

    Issue with copying fileId to filesIds in attachment field

    Hello, I’m having trouble retrieving a fileId and placing it in an attachments field called filesIds. Do you have any suggestions? I plan to use the attachments field instead of the file field soon, and I want to copy the fileId values to filesIds.
  • BigBoss
    Member
    • Nov 2023
    • 86

    #2
    up please

    Comment

    • Vadym
      Super Moderator
      • Jun 2021
      • 346

      #3
      Hi BigBoss,

      Please provide more details, such as steps to reproduce, Formula script, screenshots, etc., so we can find the best solution for you.

      Comment

      • abidoss
        Senior Member
        • Mar 2023
        • 230

        #4
        If I understand your problem correctly, you are trying to extract the ID of an attachment from among several attachments. Try this solution.

        PHP Code:
        
        $result = filesIds;
        fileId = json\retrieve(json\encode($result), "filesIds");
        
        

        Comment

        Working...