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 / Custom Page :: Query D...
Power Apps
Answered

Custom Page :: Query D365 Table

(0) ShareShare
ReportReport
Posted on by 8

Hi All,

 

I am trying to execute a 'retrieve multiple' request from a custom page when I click a button.

 

I have been playing with PowerFX and ClearCollect and various other techniques without success.

 

Unlike a canvas app, I cannot see a FetchXML or method to call an API URL directly?

 

What is the best way to perform a retrieve multiple for the contact's table, for example via a custom page?

 

The below works to some extent - but it's not what I'm after. Is there another way?

 

 

 

ClearCollect(
ContactsCollection,
Contacts
)

 

 

 

The below don't appear to work in custom pages:?

 

 

ClearCollect(
 ContactsCollection,
 'https://<your_organization_name>.crm.dynamics.com/api/data/v9.1/contacts?$select=fullname,emailaddress1,telephone1'
);

 

 

 

ClearCollect(
 ContactsCollection,
 FetchXML(
 "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
 <entity name='contact'>
 <attribute name='firstname' />
 <attribute name='lastname' />
 </entity>
 </fetch>"
 ).value
);

 

 

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

    Hi @h4x0rz3d ,

     

    Please try this:

    ClearCollect(
     ContactsCollection,
     ShowColumns(Contacts,fullname,emailaddress1,telephone1)
    );

     

    This has the same effect as the api you mentioned above.

     

    Best Regards,

    Wearsky

  • h4x0rz3d Profile Picture
    8 on at

    Hi Wearsky,

    I am getting "The function 'ShowColumns' has some invalid arguments." when trying this.

    Thanks,

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @h4x0rz3d ,

     

    Double quotes are missing in my formula.

    Here is the documentation.

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-table-shaping

     

    Best Regards,

    Wearsky

  • h4x0rz3d Profile Picture
    8 on at

    Thanks very much.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard