Forum Discussion

RFulton's avatar
RFulton
Copper Contributor
Dec 06, 2024
Solved

SharePoint List Flow - Displaying Unique ID

I have create a flow to populate a word document and email the user. It is working great, except certain fields the word document populates with the Sharepoint unique ID string. How can I get this fo...
  • HaidariHammad's avatar
    Dec 09, 2024

    In your Flow, when you're pulling data from the SharePoint list, add a https://learn.microsoft.com/en-us/power-automate/data-operations action right after getting your list item. This will help format the text before it goes into your document.

    For a single line of text field, use this expression:

    body('Get_item')?['TextFieldName']

    For a multiple lines of text field, use this expression:

    body('Get_item')?['MultiLineFieldName']

    For a number field, use this expression:

    body('Get_item')?['NumberFieldName']

    For a date/time field, use this expression:

    body('Get_item')?['DateFieldName']

    Place this Compose action between your "Get Item" and your "Create Word Document" steps. Then, when you're setting up your Word document template, use the output from the Compose action instead of directly using the SharePoint field.

    This gives you just the clean text without all the extra SharePoint ID information that usually comes with it. The Compose action basically acts as a filter, stripping away everything except the text you actually want to see in your document.

Resources