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 / Powerapp form showing ...
Power Apps
Answered

Powerapp form showing wrong value when editing SP list item

(0) ShareShare
ReportReport
Posted on by 9

Hi, 

I have the following situation: simple SP form with a customised PowerApp form. In certain situations, a mail will have to be send, so I created a Mail field (text field, no drop down) in the list, which can have value Yes or No. When creating a new item in the list, the field has to be set to "Yes". In some cases this field wil be manually reset to "No" afterwards.

I want to use this value in a later stage to start a mailflow. 

 

In Powerapps, I set the DefaultValue of the Mail field to a global variable called SendMail

In the OnNew of the SharepointIntegration Object I set this variabla: Set(SendMail;"Yes")

In the OnEdit /  OnView of the SharepointIntegration Object I lookup the current value of the record: Set(SendMail;LookUp('Registratie Reservaties';'Id (ID)'= SharePointIntegration.SelectedListItemID;Mail))

 

Still I can not thrust on the value that is shown when I edit or view a certain item. Sometimes it gives me the correct value, sometimes the wrong one. 

The strange thing is I that did the exact same thing with another field, and there everything is behaving just fine there. 

Any ideas or suggestions?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @DavidVDP :

    Could you please set the mail field's Default value to

    If(
    IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected);
    "Yes";
    SharePointIntegration.Selected.Mail
    )

    and then check if the issue still exists?

    Best Regards,

    Bof

  • Verified answer
    DavidVDP Profile Picture
    9 on at

    I found the solution, the problem was that de OnChange event of a dropdown is triggered whenever the forms opens....doesn't seem logic imhu, but I found what was causing this.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard