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 / 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,427 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

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard