cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Patch error

Hi I am trying to patch ForAll but i am having problem due to COD textbox showing on the screenshot, normally the COD textbox when enter a value it registers on sharepoint a value amount and will show this record has a COD but the strange thing is when i enter a value my patch formula will work ok but without value on the COD textbox it will not patch ,please see the screenshot and my formula 

 

 

ForAll(
RepeattingTable_1.AllItems,
Patch(
Shipments,
Defaults(Shipments),
{
TrackingNumber: tbTracking_.Text,
ShippingFee:Value( tbShipFee_.Text),
Weight:Value( tbWeight_.Text),
Length: tbLenght_.Text,
Width: tbWidth_.Text,
Height: tbHeight_.Text,
DeclaredValue: tbDeclare_.Text,
CodAmount:Value(tbCOD_.Text),



Company: tbCompany_.Selected,
OrderDate: tbOrderDate_.SelectedDate,
Payment_x0020_Method: tbPaymentsMethod_.Selected,
ShippingMethod: tbShippingMethod_.Selected,
ShippingRoute: tbShippingRoute_.Selected,
Status: tbStatus_.Selected,

CODDUEDATE: tbCodDueDate_.SelectedDate,
DueDate: tbCodDueDate_.SelectedDate,
TotalPieces:Value( TbTotalShip_.Selected.Value),
Collect_x0020_on_x0020_delivery_: If( 
CODToggle.Value,
true,
false
),
Check_x0020_Number: tbCheckNo_.Text,
//Employee:tbEmployee_.Selected,
//DueDate: DataCardValue17_2.SelectedDate
InvoiceNumber: tbInvoice_.Text,
CODCollectionType: tbPayments.Selected,
CardNumber:tbCardNumber_.Text
//ImageData:First(ImageCollection).Value

 


}
)

)

 

 

 

Capture3.PNG

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also close the item., please consider giving it Thumbs Up.
11 REPLIES 11
Highlighted

Not multi select and its choice list 

Item: Choices([@Shipments].CODCollectionType)

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also close the item., please consider giving it Thumbs Up.
Highlighted

@Ramole ,

Try this

CODCollectionType: {Value:tbPayments.Selected.Value}

 

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,355)