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 / Working with strings i...
Power Apps
Answered

Working with strings in Power Apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

Is there a way i can get the middle part of a string by removing the first n and last m characters, where the size of the string will be dynamic and not static.

 

For eg: My string is 

[{"Url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjIAAAFKCAYAAAAHVbVoAAAgAElEQVR4Xu3dCax8V10H8K8tLYuIyGJBFsviQhEkoEARFQUBxaXaIAQR4xaMILgQFReEiBESIopERIx7XHHDBRBFDFgEBREsooJIxILsBVkFNce+v7xO582ceTNn5px7P5MYoz1zzu98fnfmff93Zu79mHgQIECAAAECBAYV+JhB61Y2AQIECBAgQCCCjIOAAAECBAgQGFZAkBm2dQonQIAAAQIEBBnHAAECBAgQIDCsgCAzbOsUToAAAQIECAgyjgECBAgQIEBgWAFBZtjWKZwAAQIECBAQZBwDBAgQIECAwLACgsywrVM4AQIECBAgIMg4BggQIECAAIFhBQSZYVuncAIECBAgQECQcQwQIECAAAECwwoIMsO2TuEECBAgQICAIOMYIECAAAECBIYVEGSGbZ3CCRAgQIAAAUHGMUCAAAECBAgMKyDIDNs6hRMgQIAAAQKCjGOAAAECBAgQGFZAkBm2dQonQIAAAQIEBBnHAAECBAgQIDCsgCAzbOsUToAAAQIECAgyjgECBAgQIEBgWAFBZtjWKZwAAQIECBAQZBwDBAgQIECAwLACgsywrVM4AQIECBAgIMg4BggQIECAAIFhBQSZYVuncAIECBAgQECQcQwQIECAAAECwwoIMsO2TuEECBAgQICAIOMYIECAA"}]

I want to remove the first 9 characters and last 3 characters and save the rest of the string.

 

Any help will be appreciated.

 

Regards

Srinath
 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,574 Most Valuable Professional on at

    Hi @Anonymous Try

    UpdateContext({vNewString,<YourString>})
    UpdateContext({vNewString,Mid(vNewString,10,Len(vNewstring)-12)})

    Please excuse if I have not got the mathematics quite right, but you are extracting from the 10th character for a length of 12 less than the string length.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard