Sharepoint Title Column Attachment

DaveB 126 Reputation points
2022-02-18T22:27:02.983+00:00

I'd like to make the "Title" column in a Sharepoint list to get dynamically the name of the attached file when I create a new item. Is this something possible?

I did searches on how to accomplish this by formatting the JSON of the column, but find nothing. Also, my knowledge of JSON is not good enough. If you have simple documentation or anything else that can help, it would be much appreciated.

Best regards

Microsoft 365 and Office SharePoint Development
0 comments No comments
{count} votes

Accepted answer
  1. Rob Windsor 2,001 Reputation points
    2022-02-19T15:11:53.36+00:00

    You mentioned JSON column formatting, so I'm going to assume you are using SharePoint Online. if that's the case then I would suggest using Power Automate.

    You would use the When an item is created trigger, get the attachments, loop through the attachments (SharePoint enables you to add more than one) to get the name of the last attachment, and then update the Title field value if there was an attachment.

    176035-image.png

    176054-image.png

    176036-image.png

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. DaveB 126 Reputation points
    2022-03-11T13:07:27.463+00:00

    @CaseyYang-MSFT , @Rob Windsor

    Sorry for the late response, but I still not able to see any "accept answer" button. I really would like to accept it and give you all the credit for your help on this.

    The same thing just happened on another question I asked yesterday. I can't see any "accept answer".

    I can't even rate star any comments, it says I don't have enough permissions. So, I think the reason might be related to my company Microsoft profile, because I logged with. I did try to merge it with my personnal outlook account, but it's not working.

    I apologize for this.
    Dave

    0 comments No comments

  2. DaveB 126 Reputation points
    2022-03-11T13:10:42.097+00:00

    @CaseyYang-MSFT , @Rob Windsor

    Finally! Both of my accounts merged!
    So, I was able to accept your answer. It was really because of my company account permissions I wasn't able to accept it.

    Thanks again for your help!
    Dave

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.