Skip to main content

Notifications

Power Apps - Building 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:
  • WarrenBelz Profile Picture
    WarrenBelz 145,691 on at
    Re: Powerapps Collections and Extracting IDs during a SharePoint (1) Patch to simultaneously update a SharePoint (2) ID column

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard