Forum Discussion

AwaisKhalid's avatar
AwaisKhalid
Copper Contributor
Aug 18, 2020
Solved

Create meeting Using PowerShell, Graph API and CSV File

I have successfully created the teams meeting using Graph API and PowerShell. Now i wan to import a csv and want to create meeting using that csv file. There are two columns in csv DisplayName and UP...
  • Manfred101's avatar
    Aug 18, 2020

    AwaisKhalid 

    Try to use this body:

     

    $bodyy = @"
    {
    "subject": "Let's go for lunch",
    "body": {
    "contentType": "HTML",
    "content": "Does noon work for you?"
    },
    "start": {
    "dateTime": $($_.StartTime),
    "timeZone": "Pakistan Standard Time"
    },
    "end": {
    "dateTime": $($_.EndTime),
    "timeZone": "Pakistan Standard Time"
    },
    "location":{
    "displayName":$($_.DisplayName)
    },
    "attendees": [
    {
    "emailAddress": {
    "address":$($_.UPN),                                            #Want to use csv data here
    "name": "Awais Khalid"
     },
    "type": "required"
     }
     ],
     "allowNewTimeProposals": true,
     "isOnlineMeeting": true,
     "onlineMeetingProvider": "teamsForBusiness"
     }
    "@

     

    Manfred de Laat

Resources