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 / Powerapps Collections ...
Power Apps
Unanswered

Powerapps Collections and Extracting IDs during a SharePoint (1) Patch to simultaneously update a SharePoint (2) ID column

(0) ShareShare
ReportReport
Posted on by

Good Afternoon, 

 

I am hoping to receive some direction. I have tried multiple ways to get the below code to work, with no luck. I am trying to  extracting IDs from a collection during a SharePoint (1) Patch to simultaneously update SharePoint (2)(Images) ID column with the collection IDs for that single submission. I currently have the below code on my OnSelect of the Submit button:

I receive this error on my current code (The type of this argument 'OriginalID1' does not match the expected type 'Number'. found type 'Text'.

 

ForAll(
col_names,
With(
{
newItem: Patch(
'Marketplace items (test)',
Defaults('Marketplace items (test)'),
{
'Serial#': Value('Serial#'),
'Barcode#': 'Barcode#',
Manufacturer: Manufacturer,
Model: Model,
Description: Description,
'Asset Condition': {Value: 'Asset Condition'},
'Cost of Item': Value('Cost of Item'),
Category: {Value: Category},
'Custodian Branch': 'Custodian Branch',
Building: Building,
Room: Room,
'Name of Submitter': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
JobTitle: "",
Picture: "",
Claims: "i:0#.f|membership|" & DataCardValue39_1.Selected.Email,
DisplayName: DataCardValue39_1.Selected.DisplayName,
Email: DataCardValue39_1.Selected.Email
},
'Submitter Email': 'Submitter Email',
City_State: City_State,
Locations: {Value: Locations},
'Date Submitted': 'Date Submitted',
'History Log': 'History Log'
}
)
},
Patch(
'Marketplace Images',
Defaults('Marketplace Images'),
Image_Form_3.Updates,
{
'Original ID': Concatenate(Value(newItem.ID), ", ")
}
)
)
);
Navigate('Market Duplicates', ScreenTransition.Fade)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @Johnny23 ,

    The issue is here

    'Original ID': Concatenate(Value(newItem.ID), ", ")

    It is saying 'Original ID' is a number - you are turning it into Text, when you do not need to

    'Original ID': newItem.ID

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard