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 / How to edit value insi...
Power Automate
Unanswered

How to edit value inside array with addproperty?

(0) ShareShare
ReportReport
Posted on by 102

This is example of my array 

What I would like to do is to extract first 8 digit of app_hs and add it back to array as hs8

 

[
 {
 "app_no": "G7605001503",
 "app_status": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 0,
 "Value": "On process"
 },
 "app_hs": "1221310000",
 "app_scheme": "XSEAN",
 "app_model": "XIACE",
 "app_part_name": "XLEMENT , XIR XEFINER",
 "app_xxx_percent": "95.0788"
 },
 {
 "app_no": "G7605002031",
 "app_status": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 0,
 "Value": "On process"
 },
 "app_hs": "9911220000",
 "app_scheme": "XSEAN",
 "app_model": null,
 "app_part_name": "XING, SNAX",
 "app_xxx_percent": "61.8968"
 }
]

 

This is the result I expected to be

 

[
 {
 "app_no": "G7605001503",
 "app_status": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 0,
 "Value": "On process"
 },
 "app_hs": "1221310000",
 "app_scheme": "XSEAN",
 "app_model": "XIACE",
 "app_part_name": "XLEMENT , XIR XEFINER",
 "app_xxx_percent": "95.0788",
 "hs8":"12213100"
 },
 {
 "app_no": "G7605002031",
 "app_status": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 0,
 "Value": "On process"
 },
 "app_hs": "9911220000",
 "app_scheme": "XSEAN",
 "app_model": null,
 "app_part_name": "XING, SNAX",
 "app_xxx_percent": "61.8968",
 "hs8":"99112200"
 }
]

 

 I try to do substring extraction but got error.  Please give some suggestion...

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @PichayaCh ,

    Please check this test:

    The Result:

    vyetonggumsft_4-1715242571927.png

    My Flow:

    vyetonggumsft_2-1715242410189.png

    vyetonggumsft_1-1715242948448.png

    substring(items('Apply_to_each')?['app_hs'],0,8)
    addProperty(items('Apply_to_each'),'hs8',outputs('Compose_extract_number'))

    Best Regards,

    Sunshine Gu

  • PichayaCh Profile Picture
    102 on at

    Working great! Thanks for your answer!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard