cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Patch: cambiar valores de una fila en sharepoint

Hola.

 

Tengo una lista en sharepoint que esta asociada a un powerapps y necesito saber la formula poner en el Boton "liquidar nave" para que los valores del 'Estado de liquidacion' cambie "Ingresado" a "liquidado" segun el IDNaveViaje, se puede usar patch pero hasta ahora no me funciona.

 

La lista origen se llama 'Ingresos CT'

Captura3.PNG

 


Captura.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

Hello @pzumi ,

If the type of 'Estado de liquidacion' in the SharePoint list is a string, then you can use the expression below to replace it:

If (
    Not(IsBlank(LookUp('Ingresos CT'; IDNaveViaje = Value(TextInput1.Text))));
    Patch(
        'Ingresos CT';
        LookUp('Ingresos CT'; IDNaveViaje = Value(TextInput1.Text));
        { 'Estado de liquidacion': "Liquidado" }))

Where 'TextInput1' is the name of the text input that contains the 'IDNaveviaje a liquidar'. You would use a LookUp to find the record to be updated, then pass as the third parameter of the LookUp expression the change that you want made.

View solution in original post

1 REPLY 1
Power Apps
Power Apps

Hello @pzumi ,

If the type of 'Estado de liquidacion' in the SharePoint list is a string, then you can use the expression below to replace it:

If (
    Not(IsBlank(LookUp('Ingresos CT'; IDNaveViaje = Value(TextInput1.Text))));
    Patch(
        'Ingresos CT';
        LookUp('Ingresos CT'; IDNaveViaje = Value(TextInput1.Text));
        { 'Estado de liquidacion': "Liquidado" }))

Where 'TextInput1' is the name of the text input that contains the 'IDNaveviaje a liquidar'. You would use a LookUp to find the record to be updated, then pass as the third parameter of the LookUp expression the change that you want made.

View solution in original post

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

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,500)