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 / Produce error message ...
Power Apps
Unanswered

Produce error message if entered entry on PowerApps is not on database

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Can I produce an error message if the submitted entry on PowerApps is not on my connected database (Oracle) and subsequently pipe the submitted entry onto a sharepoint list?

 

For example, i have to enter a product code, B123, and B123 is not in my database so I want to produce an error message for the user to rectify. If B123 is in my database, then I want to submit and let the entry be reflected on my connected Sharepoint List. Is this possible?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,492 Most Valuable Professional on at

    Hi @Anonymous ,

    Do a Lookup to Oracle

    If(
     !IsBlank(
     LookUp(
     YourOracleTable,
     ProductCode=123
     ).ProductCode
     ),
     Patch(
     YourOracleTable,
     {MatchingCriteriaHere}
     {PatchDataHere}
     ),
     Patch(
     YourSPList,
     {MatchingCriteriaHere}
     {PatchDataHere}
     );
     Notify("Added to SharePoint")
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • JamesYumnam Profile Picture
    on at

    Seems like quite possible and easier too, using Power Automate. 

  • JamesYumnam Profile Picture
    on at

    @Anonymous You can pass the value from your PowerApp to the Flow. 

    In the flow, connect to your Oracle DB and check if there are rows with same value as you have passed.

    If no(data does not exist), send response  from the flow to your app.

    If yes(data exists), continue to add actions to connect to your SP list and add the new record.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard