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 / Modify values in array
Power Automate
Unanswered

Modify values in array

(0) ShareShare
ReportReport
Posted on by 27

I created a flow.

It puts the files/subfolders properties (ID, filename, uploader etc) from a specific folder into a Sharepoint list.

I put the file IDs into filearray.

I put file IDs (column called FILE-ID) from a SharePoint list into listarray.

The problem is the following:

filearray looks like this: [222,225,221,230]

listarray looks like this: ["222","225","221","230","240"]

The column type is single-line text. I tried to change to number but it adds .0 to the value.

I'd like to compare the two arrays but because of this "it always shows differences.

 

How can I remove/add " from the values of the arrays? 

 

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gabororsi 

     

    Didn't understood completely. How you getting the filter array? Could you please have a screenshot?

     

    Thanks

  • gabororsi Profile Picture
    27 on at

    flow array 1.jpg

     

    flow array 2.jpg

     

    flow array 3.jpg

     

    flow array 4.jpg

     

    flow array 5.jpg

     

    flow array 6.jpg

     

    LISTLIST

     

    FilesFiles

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gabororsi 

     

     

    image.png

     

    Above when you map the File-Id under the append array try to convert to integer using expression int()

     

    Thanks

  • gabororsi Profile Picture
    27 on at
    I put this into that but I for error
    int(outputs('Get_items_LIST')?['FILE-ID'])
    or
    int(outputs('Get_items_LIST')?['FILE_x002d_ID'])
     
    Unable to process template language expressions in action 'Append_to_array_variable_2' inputs at line '1' and column '21324': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
     
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gabororsi 

     

    Add a compose above the append array and map the value. Do not use the int() conversion. Run the flow and see what value it returns. Let me know the results or the screenshot of your flow run history.

     

    Thanks

  • gabororsi Profile Picture
    27 on at

    Is this how you thought?flow array 9.jpgflow array 10.jpg

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gabororsi 

     

    Nearly there. Expand the compose step under the run history. I am interested in that.

     

    Thanks

  • gabororsi Profile Picture
    27 on at

    flow array 11.jpg

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gabororsi 

     

    Thanks so next step try to append using the above output from the compose by converting to int()

  • gabororsi Profile Picture
    27 on at

    Thanks for the help so far.

     

    flow array 12.jpgflow array 13.jpg

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard