web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Asociar ID

(1) ShareShare
ReportReport
Posted on by 115
Hola
 
Estoy creando un nuevo registro pero no me aparece por que no esta seleccionando el ID_Ticket ¿Como le puedo hacer?
 
Al momento de darle Nuevo Registro solo me aparece en la tabla de SharePoint pero como no esta asociado con el ID_Ticket no me aparece en la app
 
Si se lo pongo manualmente directo del SharePoint el ID_Ticket si me aparece en la app
 
Tengo esto en el Boton (OnSelect) 
Patch(StatusTicket;Defaults(StatusTicket);{Title:""})
 
Tengo esto en los TextInput (Default) 
ThisItem.Detalles
 
Tengo esto en los TextInput (OnChange) 
Patch(StatusTicket;ThisItem;{Detalles:TextInput2.Text})
 
Como le puedo hacer para que al momento de darle Clic al boton seleccione el ID_Ticket correspondiente en este caso el 131
I have the same question (0)
  • Verified answer
    11manish Profile Picture
    3,333 on at
    The best solution here is to ensure the relationship (ID_Ticket) is set at the time of record creation and then work with that same record consistently. This avoids visibility issues and keeps your app logic clean and reliable.

    Step 1: Create and store the record (with ID_Ticket)
    Instead of creating a record without a link, create it with the correct ID_Ticket and store it in a variable:
    Set(
        varStatusTicket,
        Patch(
            StatusTicket,
            Defaults(StatusTicket),
            {
                Title: "",
                ID_Ticket: Gallery1.Selected.ID   // link to selected ticket
            }
        )
    )

    Step 2: Update fields using the stored record
    Now update your fields using the same record:
    Patch(
        StatusTicket,
        varStatusTicket,
        {
            Detalles: TextInput2.Text
        }
    )
     
    If ID_Ticket is a Lookup Column
    Use this format:
    ID_Ticket: {
        Id: Gallery1.Selected.ID,
        Value: Gallery1.Selected.Title
    }
  • IS-12031616-0 Profile Picture
    115 on at
    En el botón (OnSelect) me sale el siguiente error
     
    Las comas las( , ) cambie por punto y coma ( ; )
     
     
    Creo si es una columna de busqueda
    Veo que la columna ID_Ticket lo agarra de mi otra tabla Ticket 
     
    Como puedo concatenar 2 tablas para que pase el mismo ID
    Patch(StatusTicket;Defaults(StatusTicket);{Title:""})
     
    Ya que si le pongo el nombre de la tabla ID_Ticket me marca error 
     
     
     
     
  • Verified answer
    11manish Profile Picture
    3,333 on at

    To fix this, you need to provide the record that the Gallery item represents. Try this:

    Patch(
    StatusTicket;
    Defaults(StatusTicket);
    {
    Title: "";
    ID_Ticket: Gallery1.Selected
    }
    )

  • IS-12031616-0 Profile Picture
    115 on at
    Ya modifique el OnSelect del boton 
    Patch(
    StatusTicket;
    Defaults(StatusTicket);
    {
    Título: "";
    ID_Ticket: Gallery1.Selected
    }
    )
     
    Pero me sigue saliendo error
     
    Lo que yo pongo como
    Title:""
    Lo intente cambiar por el nombre de mi columna ID_Ticket pero no me deja 
     
    Al igual que en el TextInput 
     
    Uso esta linea en la Galeria para que me muestre con su ID y si funciona
    Filter(StatusTicket; ID_Ticket.Id = CurrentItem.ID)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard