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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Concatenating inputs
Power Apps
Answered

Concatenating inputs

(0) ShareShare
ReportReport
Posted on by 27

Thank you

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @imrineeman 

    Concatenate() only works with strings so if you have a number or date field, you have to wrap it with Text() to convert it.  You can use "&" instead to create a string of text, dates and numbers

    Set(varSKU, somenumber&somedate&sometext)

    The Concatenate function will error if you try to combine text, numbers and dates 

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @imrineeman 

    You might first want to review the required columns in your data source.  Sounds like a SharePoint datasource since you mention Title, but even if not...review what is required and make sure it is being supplied when creating a new record.

    OnSuccess Action:
    
    UpdateIf('SKU Generator - Database', 
     ID=New_Form.LastSubmit.ID,
     {Serialnumber:
     Text(New_Form.LastSubmit.ID, "00000"),
     'Catalog Number':
     ProjectCodeCardValue.Text & Text(New_Form.LastSubmit.ID,"00000") & TypeCodeCardValue.Text
     }
    )
    

     

    Note, the ProjectCodeCardValue.Text and TypeCodeCardValue.Text.  This is based on the assumption that these are TextInput controls in your EditForm DataCard.  You need to replace them with the appropriate control name.

    OR, if the value of ProjectCode and TypeCode are being recorded in your Submit, then you can change the formula to this (assuming those exact column names)

     

    UpdateIf('SKU Generator - Database', 
     ID=New_Form.LastSubmit.ID,
     {Serialnumber:
     Text(New_Form.LastSubmit.ID, "00000"),
     'Catalog Number':
     New_Form.LastSubmit.ProjectCode & Text(New_Form.LastSubmit.ID,"00000") & New_Form.LastSubmit.TypeCode
     }
    )
    

     

    BUT - if you are getting a Title required error somewhere, that is a different issue.  Make sure you are populating any required columns with your submit and EditForm.

     

    I hope this is helpful for you.

  • imrineeman Profile Picture
    27 on at

    Thank you, this has worked

     

    On another note - can you help me assign the first attached document as the picture in the gallery? I have an image object in gallery and i cant link it to the first attachment on the form

     

    Thank you

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @imrineeman 

    Very good.  Glad it helped!

     

    For your other question, I'd recommend that you mark this question as Accepted Solution and post another for your image question.  Provide some examples and screenshots if necessary for the fastest responses.  That way others can gain from your questions and solutions as well.  If you ever want a particular person that you have dealt with (such as myself) to respond, you can @ include them in any post you do.  That way they will get a notification and can check in on your question quickly.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard