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
PowerApps Staff CarlosFigueira
PowerApps 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.

1 REPLY 1
PowerApps Staff CarlosFigueira
PowerApps 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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 184 members 4,740 guests
Please welcome our newest community members: