Call records Powershell sample

%3CLINGO-SUB%20id%3D%22lingo-sub-1347334%22%20slang%3D%22en-US%22%3ECall%20records%20Powershell%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1347334%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20get%20a%20list%20of%20all%20Teams%20calls%20for%20the%20previous%20day.%20I'm%20following%20the%20instructions%20from%20TechNet%20-%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fcallrecords-api-overview%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fcallrecords-api-overview%3Fview%3Dgraph-rest-beta%3C%2FA%3E%20and%20have%20the%20applications%20setup%20correctly%20but%20don't%20know%20what%20call%20to%20make%2C%20in%20the%20documentation%20all%20it%20mentions%20is%3A%3C%2FP%3E%3CP%3EGET%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fcommunications%2FcallRecords%2F%7Bid%7D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fcommunications%2FcallRecords%2F%7Bid%7D%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20any%20samples%20of%20getting%20all%20calls%20for%20a%20particular%20date%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1347334%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EcallRecord%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1348820%22%20slang%3D%22en-US%22%3ERe%3A%20Call%20records%20Powershell%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1348820%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F587571%22%20target%3D%22_blank%22%3E%40dafo43%3C%2FA%3E%2C%20You%20need%20to%20implement%20graphClient%20in%20your%20application%20and%20call%20the%3CA%20href%3D%22http%3A%2F%2FGET%2520https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fcommunications%2FcallRecords%2F%7Bid%7D%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%26nbsp%3BGET%20https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fcommunications%2FcallRecords%2F%7Bid%7D%20%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Eendpoint%20to%20fetch%20the%20list%20of%20calls%20recorded.%20Currently%20there%20is%20no%20powershell%20sample%20code.%20I%20believe%20you%20can%20implement%20the%20same%20in%20powershell.Let%20me%20know%20if%20this%20doesn't%20help%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349234%22%20slang%3D%22en-US%22%3ERe%3A%20Call%20records%20Powershell%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349234%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3EThanks%2C%20though%20it%20doesn't%20really%20help%20me%2C%20I'm%20not%20a%20developer%20so%20I%20only%20know%20Powershell.%20From%20what%20I%20was%20reading%20I%20need%20to%20get%20a%20subscription%20to%20get%20all%20the%20calls%20back%20for%20the%20previous%20day%2C%20which%20would%20give%20the%20ID.%20But%20again%20there%20is%20no%20sample%20of%20how%20to%20do%20this%20in%20Powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20Azure%20application%20setup%20correctly%2C%20it's%20just%20a%20case%20of%20making%20the%20correct%20Graph%20calls.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349242%22%20slang%3D%22en-US%22%3ERe%3A%20Call%20records%20Powershell%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349242%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F587571%22%20target%3D%22_blank%22%3E%40dafo43%3C%2FA%3E%26nbsp%3B%2C%20Yes%20The%20API%20which%20I've%20mentioned%20is%20the%20correct%20graph%20API.%20There%20is%20no%20power%20shell%20sample%20available%20for%20it.%20But%20if%20you%20know%20power%20shell%20you%20can%20call%20the%20API%20as%20in%20other%20language.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

 

I'm trying to get a list of all Teams calls for the previous day. I'm following the instructions from TechNet - https://docs.microsoft.com/en-us/graph/api/resources/callrecords-api-overview?view=graph-rest-beta and have the applications setup correctly but don't know what call to make, in the documentation all it mentions is:

GET https://graph.microsoft.com/beta/communications/callRecords/{id}

 

Are there any samples of getting all calls for a particular date?

3 Replies
Highlighted

@dafo43, You need to implement graphClient in your application and call the GET https://graph.microsoft.com/beta/communications/callRecords/{id}

endpoint to fetch the list of calls recorded. Currently there is no powershell sample code. I believe you can implement the same in powershell.Let me know if this doesn't help you.

Highlighted

@Trinetra-MSFTThanks, though it doesn't really help me, I'm not a developer so I only know Powershell. From what I was reading I need to get a subscription to get all the calls back for the previous day, which would give the ID. But again there is no sample of how to do this in Powershell.

 

I have the Azure application setup correctly, it's just a case of making the correct Graph calls.

Highlighted

@dafo43 , Yes The API which I've mentioned is the correct graph API. There is no power shell sample available for it. But if you know power shell you can call the API as in other language.