cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Power Apps
Power Apps

Re: Patch: cambiar valores de una fila en sharepoint

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
Highlighted
Power Apps
Power Apps

Re: Patch: cambiar valores de una fila en sharepoint

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

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,774)