web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Array issue with added...
Power Automate
Unanswered

Array issue with added underscore in Send an HTTP request to Sharepoint (SharePoint list) from previous versions

(0) ShareShare
ReportReport
Posted on by 6

Hi,

I am trying to get previous versions of changes in a SharePoint list when I item is changed

I have followed Reza Dorrani's YouTube-clip: https://www.youtube.com/watch?v=Ek4oYWPWfT0&t

 

My Flow is like this (it's more up, but this is more important):

Ulven_1-1668681256662.png

 

Ulven_0-1668681226963.png

Look at the "field_x005f_18" and 20. Why is x005f (underline) getting added when the field name is field_XX?

Ulven_2-1668681556711.png

 

 

Best regards

Ulven

Categories:
I have the same question (0)
  • shoog Profile Picture
    2,164 on at

    This is SharePoints internal name, where all special characters are converted into codes like this.

    You can verify the internal name when you edit the column in SP, you can see the fieldname in the url.

  • Ulven Profile Picture
    6 on at

    Hi

     

    Thank you. Is there any workaround on this ? Because I am using item() and item()['ColumnNames'] in getting the data and comparing. How can I add x005f or similar to get the correct data?

     

  • shoog Profile Picture
    2,164 on at

    This is just the way SharePoint created columns having special characters. If you really want to avoid that, create the column name using letters and numbers only and rename it afterwards.

     

    But you can still use it the way it is in Power Automate as long as you make sure you use the internal name when referencing the column in an expression instead of the friendly name, so for example

    item()['field_x005f_18']

    will work just fine.

  • Ulven Profile Picture
    6 on at

    Hi again,


    Is there an other workaround with use of arrays? A single item is not good enough

  • shoog Profile Picture
    2,164 on at

    Can you give an example of what problem you're running into with arrays and show what the "Select column names" action does?

  • Ulven Profile Picture
    6 on at

    Yes:

    The ColumnName code: 

    replace(split(item(),':')[0],'"','')
    Value: 
    split(item(),':')[1]

    Ulven_0-1668758496138.png

    I use "Select column names" and join the body in HTTP req..

    Ulven_2-1668758694347.png

    and comparing the item values, but the item values are different because of the underscore (I think) and does not get compared with the right column names...any ideas?

  • mwitt Profile Picture
    2 on at

     Have the exact same issue and its driving me nuts. It really sucks that SharePoint decides to create the internal names this way when creating a list from an excel file and do not expose this until it is to late to fix it, but no I have to solve it for the exact same case as above, so any ideas on how to proceed?

  • tom4112 Profile Picture
    2 on at

    I came across the same issue and simply used a replace function in a Compose action as a workaround (as _x005f_ is the special character for an underscore):

     

    replace(item(),'_','_x005f_')
     
    And then I've referenced the output of the Compose action in the next step instead of using "item()":
     
    coalesce(body('Send_an_HTTP_request_to_SharePoint')?['d']?['results']?[0]?[outputs('Compose')],'')
     
    compose.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard