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 Apps / Combine two values int...
Power Apps
Unanswered

Combine two values into one field

(0) ShareShare
ReportReport
Posted on by 9

Hi.

I'm new to the Power Apps. I need to organize some data to make my power automate work, but I have some problems and don't know how to solve it


Now I have a Sharepoint list and Apps
There is a combobox and an input box in apps

螢幕擷取畫面 2022-05-12 150035.png

 

I hope that the values of these two choices can be combined and stored in the same sharepoint field

 

for example

Apps:

  1. Tltle
    Enter "test file"
  2. Name
    Enter "Stan"
  3. Type
    ComboBox
       Select "A B C"
    Text box
       Enter "E"
  4. State
    Enter "Done"


  5. press SAVE

 

Sharepint list (Please ignore values other than "Type"):

TltleNameTypeState
test fileStanA, B ,C ,EDone

 


What should be done to achieve this function?

 

thanks

 

Categories:
I have the same question (0)
  • Verified answer
    Miguel Oliveira Profile Picture
    Microsoft Employee on at

    Hi @SoranoErring!

    You can use the Concatenate() function in order to merge all the values that you want to store in the same field, and then save the Concatenate result into a variable so you can patch the variable result into your SharePoint, something like this:

    Set(varAllValues, Concatenate(TextInput1.Text, Combobox1.Selected, TextInput2.Text,....)) 

    Let me know if this solution fit your needs

    Kind Regards,

    Miguel Oliveira

  • SoranoErring Profile Picture
    9 on at

    @MiguelOliveira 

    Thanks for the method
    But I'm really unfamiliar with power apps, I don't know where to use this function and send it back to sharepoint

    I found some places to put the function

     

    DataCardValue4 is my Combobox

    Select : A B D

    DataCardValue8 is my TextInput

    Enter : E

     

    I tried to use:

    Concatenate(DataCardValue4.Selected, DataCardValue8.Text) 

     

    But it doesn't work, invalid arguments

     

    And changed it to this

    Concatenate(DataCardValue4.Selected.Value, DataCardValue8.Text) 

    Result output : AE,

    It was close to what I wanted, but only one data was output

     

    So I found another function

    Concat(DataCardValue4.SelectedItems,DataCardValue8.Text,",")

    Result output : E,E,E

     

    No matter how I modify it, there will only be a bunch of blanks

     

  • SoranoErring Profile Picture
    9 on at

    @MiguelOliveira 

    Thank you for providing me with directions to think !

     

    Finally!
    this problem is solved

     

    I used a simple and crude method :

    Concatenate(Concat(DataCardValue4.SelectedItems,Value & ","),DataCardValue8.Text)

    Result output : A,B,D,E

     

    That's what I wanted

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard