Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

CDS or D365 Connector? Delegation issues

(0) ShareShare
ReportReport
Posted on by 2,914

I have experience building PowerApps against SQL but now have a project using D365 as the data source.

I've built a Canvas PowerApp using the Dynamics 365 connector (which has been very problematic) and I have been advised that I should use the CDS connector instead.

Using the D365 connector the following filter is delegable:

ClearCollect(colServiceLocations,Filter('Service Locations',dsl_serviceprovidertype=860910000))

Using the CDS connector this same Filter (changing the schema name for a Display Name) I get a delegation warning and also an incompatible type warning. 

ClearCollect(colServiceLocations,Filter('Service Locations','Service Location Type (Service Locations)' =860910000))

'Service Location Type (Service Locations)' appears to be a complex type (record). I just want to compare the Service Location ID to my know ID value.

Is is possible to make filters such as these (there are many in the App) work and be delegable with CDS connector?

Thanks!

  • PaulD1 Profile Picture
    2,914 on at
    Re: CDS or D365 Connector? Delegation issues

    OK, I think I have the syntax for a local option set:

     Filter(
     'Service Locations',
     'Service Location Type' = 'Service Location Type (Service Locations)'.X Y Z'
     )

     

    Filter([Entity],[Field] = '[Field] ([Entity])'.OptionName)

  • PaulD1 Profile Picture
    2,914 on at
    Re: CDS or D365 Connector? Delegation issues

    Sorry for delayed response - out of the office.

    OK, taking a look at this more urgently now as I'm getting banners in the web studio advising me to move to the new CDS connectors for improved performance and reliability (which would be nice as speed and reliability of the D365 connector is a major issue for us).

    When I check for the option set name in CDS, it is listed as 'Local option set'.

    How do I get the name of the a Local Option Set?

    If I try to supply just the numeric value for the option, or the option name I get an 'Incompatible Type' error.

  • v-xida-msft Profile Picture
    on at
    Re: CDS or D365 Connector? Delegation issues

    Hi @PaulD1 ,

    Could you please share a bit more about the 'Service Location Type' column in your CDS Entity? Is it a Option Set type column or Two Options type column?

     

    1. If the 'Service Location Type' column is a Option Set type column in your CDS Entity, please modify your formula as bellow:

    ClearCollect(
     colServiceLocations,
     Filter(
     'Service Locations', 
     'Service Location Type' = [@'OptionSetName'].Option1 // 'OptionSetName' represents the Option Set the 'Service Location Type' column related to in your CDS Entity
     )
    )

    2.JPG

     

    2. If the 'Service Location Type' column is a Two option type column in your CDS Entity, please modify your formula as bellow:

    ClearCollect(
     colServiceLocations,
     Filter(
     'Service Locations', 
     'Service Location Type' = 'Service Location Type (Service Locations)'.Option1
     )
    )

     

    More details about the Option Set column in CDS Entity, and how to filter based on Option Set column, please refer to the following blog:

    https://powerapps.microsoft.com/en-us/blog/option-sets-and-many-to-many-relationships-for-canvas-apps/

     

    Best regards,

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics