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.

View solution in original post

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,291)