Retrieve contact list name and members via Graph API - microsoft-graph-api

I'm trying to retrieve "contact lists" (distribution lists) from a Microsoft 365 account using the Graph API and direct http calls. Right now I use this URL:
https://graph.microsoft.com/v1.0/users/{userid}/contactfolders/{folderid}/contacts?$top=500&$count=true
This does retrieve the various contacts I have, but not the names of any contact lists or their members. The "count" of items that is retrieved does include those contact lists but not their actual data.
I have tried the "people" and "groups" endpoints but those retrieve different information, not what I am looking for.
I know I can use EWS for this purpose, and I have, but I'm trying to convert my existing application to 100% Graph. I would appreciate any information, thanks.

I've sent a user voice requesting for this feature: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/fetch-contact-group-using-graph-api/idi-p/3262621
Do support if you think there's no feature currently available in Graph API to fetch contact list!

Related

Is there any way to get the list of joined teams details of members?

Is there any way to get the list of joined teams details of members except graph API? Using graph API of below link we can get the list of joined teams details of any members. Similarly, is there any other way to get the list of joined MS teams group details? I want to use these details in Microsoft bot framework.
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=csharp
Due to some security concern I can not use graph API as of now.
I am also exploring below link but I am not getting anything here... Looking for any REST API like graph API where I can provide the users name and I can get details.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=dotnet
It's not a security concern, rather it's part of the requirement. If i am in your place, i would set Graph API as prerequisite for my app to work, explain the benefits that you're going to get with Graph/application permissions. Apart from Microsoft Graph API you can try with Powershell, CLI.

Teams Graph API, Retrieving files from each Teams channel

I am trying to retrieve all of the files associated with each channel within each Team. Per the Microsoft Graph REST API V1.0 documentation, it is GET /teams/{id}/channels/{id}/filesFolder.\
Please see https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http
However, filesFolder no longer appears as an available query. Is there still a way to achieve this?
Edit: Appears to be the same for Messages. https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=csharp&viewFallbackFrom=graph-rest-1.0
Why are these queries no longer available?
You can query Groups with team-id to get the items from the group's drive directly.
You can use https://graph.microsoft.com/v1.0/groups/{team-id}/drive/root/children where /drive/root can get the Document library that the channel folders are part of and /children can display all items from the folder. Referto this doc for more details on how to get a DriveItem.

List all Airtable tables via API request

Given that user provided his API key, is there a way to retrieve a list of tables in user's AirTable account?
I do know there is a URL for API queries, with base and table encoded there. Also API docs include only info on how to work with a particular table.
My use case is to allow user to choose a table they want to work with.
Airtable now offers a Metadata Api, however access is limited and must be individually requested, at this time.
As part of our ongoing effort to make Airtable more and more extensible, we’re beginning to expand access to the Metadata API 360.
The metadata API gives you read-only access to a list of a user’s bases, as well as the specific schema of each base - things like what tables exist, what fields exist on those tables, etc.
https://community.airtable.com/t/accessing-the-metadata-api/37080
Metadata Api Documentation
Enterprise API also offers endpoints capable of fetching Metadata.
This would be part of the metadata API which does not exist.
See this community post for some non-api workarounds.

Searching all users' emails in office 365 for items sent to certain people

When someone views contact details in our CRM, I would like to pull in a summary of recent correspondence.
I can search one user easily enough:
https://graph.microsoft.com/v1.0/users/jo#example.com/messages?$search="bob#example.com"&$select=from,sender,toRecipients,subject
But you have to cross reference every user with every contact is a lot of requests.
Is it possible to search the Microsoft Graph for all emails sent from/to an address from/to all users?
If not, is there any other API / Tech out there that could get me the information.
It isn't possible to search across mailboxes from Microsoft Graph API.
I recommend visiting the UserVoice and adding your suggestion.

Eloqua- Update/Delete bulk campaigns using API

There are so many outdated information on Eloqua Bulk and REST API.However, I have found a resource which seems to be the latest one:
https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/index.html
I have retrieved a list of campaigns using REST API.Here is what I am trying to accomplish using REST or Bulk API: I have to retrieve a list of campaigns matching certain criteria and then make changes to a field in all campaigns, then update the list of Campaigns using BULK or REST API.
is it possible to update the list of Campaigns using Bulk or REST API?Can I delete the list of Campaigns using Bulk or REST API?
Campaigns are not exposed in the bulk API. You'll have to use the rest API and there's no support for batch updates or deletes.
I agree, the REST/Bulk documentation is weak.
Unfortunately, you can not update the list. Why ?
Bulk API:
is designed to act on primitive data (contact, account, CO, and his own metadata aka imports/exports/syncs)
Campaigns are complex data, so they are not exposed in Bulk.
REST API:
Give you access to the list of all campaigns (good news right ?)
Data can be modified in REST but only one by one
REST is not designed for mass update. Even for contacts !
The answer is no: you can not update the list of campaigns using Bulk or REST API (not without using a program doing iteration for you).

Resources