cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pzumi
Level: Power Up

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 Staff CarlosFigueira
Power Apps Staff

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 Staff CarlosFigueira
Power Apps Staff

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,833)