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 Platform Community / Forums / Power Apps / Envio de dois formulário
Power Apps
Answered

Envio de dois formulário

(0) ShareShare
ReportReport
Posted on by 98

Boa tarde,

 

Estou criando um aplicativo no powerapps com a base de dados no sharepoint em uma unica lista.

 

No Aplicativo, tenho dois formulários que pertencem a telas diferentes. Inicalmente começo na primeira tela, preencho o formulario, clico em próximo que me leva para essa segunda tela, onde preencho este segundo formulário e clico em salvar. Na base de dados do sharepoint esta criando dois registros. Gostaria que ficassem como apenas um registro.

 

Meu submit: SubmitForm(DadosFuncionario);;SubmitForm(Anexos);;Navigate(TelaInicial;ScreenTransition.Cover)

Categories:
I have the same question (0)
  • chrisog Profile Picture
    213 on at

    Oi @FabioBarbosa,

     

    Tudo isso é feito através do Google Tradutor, portanto, tenha paciência comigo.

     

    O que eu faria na sua situação é criar uma coleção intermediária para armazenar os dados da página 1, em seguida, corrigir os dados da página 2 na mesma coleção e usar a função Coletar para criar um novo registro na sua fonte de dados. É um pouco mais complicado, mas eu prefiro fazê-lo.

     

    Você pode fazer isso fazendo com que o botão 'Avançar' na página 1 colete em uma coleção local, algo como: Coletar (myNewCollection, {campo1: TextInput1.Text, campo 2: Dropdown1.Selected.Value}) etc.

     

    Então, quando você concluir a página 2, o mesmo princípio se aplica, exceto o Patch (myNewCollection, ThisItem, {campo3: TextInput2.Text, campo4: TextInput4.Text}) etc.

     

    Em seguida, imediatamente após esse patch, colete na sua fonte de dados com: Coletar (myActualDataSource, myNewCollection)

     

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @FabioBarbosa ,

    Could you please share a bit more about your scenario?

    Do you want to submit your two forms data into a single one record in your SP List rather than separated rows?

     

    Based on the needs that you mentioned, I think there is something wrong with your formula. The SubmitForm() function is used to create a new record into your data source.

     

    As an fixed solution, I think the Patch function could achieve your needs. I have made a test on my side, please consider modify your formula as below (set the OnSelect property of the "Submit" button to following) :

    Patch(
     'YourSPList';
     Defaults('YourSPList');
     EmployeeData.Updates;
     Attachments.Updates
    );;
    ResetForm(EmployeeData);;ResetForm(Attachments);;
    Navigate(HomeScreen; ScreenTransition.Cover)

    Please consider take a try with above solution, check if the issue is solved.

     

    Please check and see if the following threads would help in your scenario:

    https://powerusers.microsoft.com/t5/Expressions-and-Formulas/How-to-Submit-multiple-times-into-1-record-of-sharepoint-list/m-p/314276

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Saving-data-from-multi-screen-powerapp-back-to-sharepoint-list/m-p/365261

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Olá,

     

     

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Obrigado pela ajuda @chrisog .

     

    Vou fazer os testes e vou posicionando aqui no fórum.

     

     

  • FabioBarbosa Profile Picture
    98 on at

    Olá,

     

    Deu certo. Obrigado a todos.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard