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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Condition to Notify if...
Power Apps
Unanswered

Condition to Notify if it already exists - error: Invalid argument type

(0) ShareShare
ReportReport
Posted on by 611

I have a form: EditForm1

The main question is for the end user to supply a ProjectID

 

If that ProjectID already exists in the entity, Id like the end user to receive a warning that it already exists.

 

This is what I have so far, however I'm getting an error on the first equal sign that says "Invalid argument type":

 

 

If(!IsBlank(LookUp(ProjEmergencies, ProjectID = ComboBox3.SelectedItems.Result))=false, Notify("That Project already exists",Warning), SubmitForm(EditForm1);Navigate(BrowseScreen1,ScreenTransition.Fade))

 

 

The data is being put into an entity on the common data service.

 

what am I doing wrong?

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,923 on at
    If(CountRows(Filter(ProjEmergencies,ProjectID=ComboBox3.Selected.Result )) > 0,
    Notify("That Project already exists",Warning), SubmitForm(EditForm1);Navigate(BrowseScreen1,ScreenTransition.Fade))
  • Community Power Platform Member Profile Picture
    on at

    I think this may have something to do with the CDS columns need to be in a certain state, some setting in PowerApps I think? 

     

    @PowerAddict 

  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    Hi @TesDA ,

    Try

    If(
     IsBlank(
     LookUp(
     ProjEmergencies,
     ProjectID = ComboBox3.SelectedItems.Result
     )
     ),
     SubmitForm(EditForm1);
     Navigate(BrowseScreen1,ScreenTransition.Fade),
     Notify("That Project already exists",Warning)
    )

    I also got rid of the Not argument which is not delegable.

     

    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.

  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    Hi @TesDA ,

    You have marked your original post as the Solution - is this what you intended to do?

  • TesDA Profile Picture
    611 on at

    That doesn't appear to be the case. I have marked the solution from another user I implemented first that worked.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard