Get URL on current page and put into SharePoint column text box

rt96 1 Reputation point
2020-08-13T13:21:45.607+00:00

Hi
I have an sp list where the URL contains an ID (?ID= GUID)

I would like to automatically put this piece of the URL, into an ID column (one we have added, single line text). The new item page appears in a pop up (have the pop up dialog turned on - this keeps the ID in the URL otherwise we lose it because we go to a new item aspx page)

Anybody know how this can be done? Can't seem to find a way in Power Automate, SPD gets quite close but I understand those workflows arent really a good option due to deprecation soon.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,185 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChelseaWu-MSFT 6,316 Reputation points
    2020-08-14T06:09:40.67+00:00

    I would like to confirm a few things with you:

    1. Do you want to get the list GUID and then put it in a column in the current list? The GUID of a list is a fixed value and will not change once the list is created. Why can’t we just set the GUID as the default value of the column?
    2. Do you want to auto-fill this column in only one list or multiple lists in your site?
    3. Can you explain a bit more about the following lines:

    The new item page appears in a pop up (have the pop up dialog turned on - this keeps the ID in the URL otherwise we lose it because we go to a new item aspx page)

    Do you mean the “Launch forms in a dialog” feature? Per my test, list GUID appears in the address bar only when we try to manage the list via List Settings. It will not show in the URL when we create new items.
    

    Please provide detailed information about your requirement. Feel free to point it out if I have misunderstood your situation.