cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sachinsoni
Level: Powered On

Problem In comparing datacardvalue

I have one column in sharepoint list type is people and groups, I want, when i add new item in list then, it check particular item already exists or not. 

 

Explanation

    1. empandapprover is datasource (SharePoint List)

    2. Approver is column in sharepoint list (Type is person or group)

    3. Datacardvalue11 is my combo box control where I select person to add in sharepoint list.

 

and I want to check, when i add new item, before adding item it check particular item already exists or not, if already exits, then notify me with message, otherwise item is added to list.

 

Please Help me to solve that issue.

 

New Error.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Problem In comparing datacardvalue

I am afraid currently there is no workaournd to deal with the delegation mentioned here.

 

The if () function might have a little problems for the formula.

Which should be write as:

 

If( !IsBlank(Lookup(SharePointList, Approver.DisplayName=DataCardValue11.Selected.Value, ID)),

     Notify(),

    SubmitForm())

The lookup function should work as expected.

If you would like to bypass the delegation warning, you may take a try to use the AddColumns function, 

For example:

If( !IsBlank(Lookup(AddColumns(SharePointList, "ApproverName", Approver.DisplayName),
ApproverName=DataCardValue11.Selected.Value, ID)), Notify(), SubmitForm())

Please note that:

When Addcolumns function used with a data source, these functions can't be delegated. Only the first portion of the data source will be retrieved and then the function applied. The result may not represent the complete story. A blue dot will appear at authoring time to remind you of this limitation and to suggest switching to delegable alternatives where possible. For more information, see the delegation overview.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Problem In comparing datacardvalue

I am afraid currently there is no workaournd to deal with the delegation mentioned here.

 

The if () function might have a little problems for the formula.

Which should be write as:

 

If( !IsBlank(Lookup(SharePointList, Approver.DisplayName=DataCardValue11.Selected.Value, ID)),

     Notify(),

    SubmitForm())

The lookup function should work as expected.

If you would like to bypass the delegation warning, you may take a try to use the AddColumns function, 

For example:

If( !IsBlank(Lookup(AddColumns(SharePointList, "ApproverName", Approver.DisplayName),
ApproverName=DataCardValue11.Selected.Value, ID)), Notify(), SubmitForm())

Please note that:

When Addcolumns function used with a data source, these functions can't be delegated. Only the first portion of the data source will be retrieved and then the function applied. The result may not represent the complete story. A blue dot will appear at authoring time to remind you of this limitation and to suggest switching to delegable alternatives where possible. For more information, see the delegation overview.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 63 members 4,352 guests
Please welcome our newest community members: