If you want me to see what is going on you will need to send me the access_token in a pm, The access token only works for 1 hour then is usless. I will not require your secret key
[edit] there was an typo in the header of http request node.
try this
[{"id":"bdbfaae1fc42e876","type":"inject","z":"9f11e0559d57c435","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":true,"onceDelay":"0.5","topic":"","payload":"","payloadType":"date","x":90,"y":40,"wires":[["7d2f789f975a8835"]]},{"id":"7d2f789f975a8835","type":"function","z":"9f11e0559d57c435","name":"Post Part erstellen","func":"msg.payload = {\n \"client_id\": \"MYCLIENTID\",\n \"scope\": \"https://graph.microsoft.com/.default\",\n \"client_secret\": 'MYSECRETID',\n \"grant_type\": \"client_credentials\"\n};\nmsg.headers = {};\nmsg.headers[\"Content-Type\"] = \"application/x-www-form-urlencoded\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":430,"y":140,"wires":[["332e34ad2e399ceb"]]},{"id":"7689c002eb80a439","type":"ui_button","z":"9f11e0559d57c435","name":"","group":"4fce8c2af3820dd7","order":2,"width":0,"height":0,"passthru":false,"label":"Hole Daten","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":90,"y":120,"wires":[["7d2f789f975a8835"]]},{"id":"332e34ad2e399ceb","type":"http request","z":"9f11e0559d57c435","name":"Post Request absenden","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://login.microsoftonline.com/MYID/oauth2/v2.0/token","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":200,"wires":[["5f521f6e4526fbed","8c7ea2297ee66efb"]]},{"id":"5f521f6e4526fbed","type":"debug","z":"9f11e0559d57c435","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":260,"wires":[]},{"id":"8c7ea2297ee66efb","type":"function","z":"9f11e0559d57c435","name":"Header Request vorbereiten","func":"msg.headers = {};\nmsg.payload.access_token = \"Bearer \" + msg.payload.access_token;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":260,"wires":[["b38033df69bb8a76","5f521f6e4526fbed"]]},{"id":"554d34610ea61e05","type":"inject","z":"9f11e0559d57c435","name":"","props":[{"p":"payload.access_token","v":"","vt":"str"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":90,"y":260,"wires":[["8c7ea2297ee66efb"]]},{"id":"b38033df69bb8a76","type":"join","z":"9f11e0559d57c435","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":340,"wires":[["25a36c5bc6f001eb"]]},{"id":"552f973997e16203","type":"ui_form","z":"9f11e0559d57c435","name":"","label":"","group":"4fce8c2af3820dd7","order":1,"width":0,"height":0,"options":[{"label":"from","value":"from","type":"date","required":true,"rows":null},{"label":"to","value":"to","type":"date","required":true,"rows":null}],"formValue":{"from":"","to":""},"payload":"","submit":"Daten Holen","cancel":"Abbrechen","topic":"form","topicType":"str","splitLayout":"","className":"","x":430,"y":340,"wires":[["b38033df69bb8a76"]]},{"id":"25a36c5bc6f001eb","type":"switch","z":"9f11e0559d57c435","name":"send if form is sent","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"form","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":750,"y":340,"wires":[["bd521561b6acb97e"]]},{"id":"bd521561b6acb97e","type":"change","z":"9f11e0559d57c435","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"\"https://graph.microsoft.com/beta/communications/callRecords/getDirectRoutingCalls(fromDateTime=\" & \t$moment($$.payload.from).tz(\"Europe/London\").format(\"YYYY-MM-DD\") & \t\",toDateTime=\" & \t$moment($$.payload.to).tz(\"Europe/London\").format(\"YYYY-MM-DD\") & \t\")\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":400,"wires":[["f4474fc86c2ec6e6","40dbdefb476cd315"]]},{"id":"f4474fc86c2ec6e6","type":"debug","z":"9f11e0559d57c435","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":400,"wires":[]},{"id":"40dbdefb476cd315","type":"http request","z":"9f11e0559d57c435","name":"Get Request absenden","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"other","keyValue":"Authorization","valueType":"msg","valueValue":"payload.access_token"}],"credentials":{},"x":410,"y":480,"wires":[["122f781dbb619410","47742f60d9d455df"]]},{"id":"122f781dbb619410","type":"debug","z":"9f11e0559d57c435","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":480,"wires":[]},{"id":"47742f60d9d455df","type":"function","z":"9f11e0559d57c435","name":"function 1","func":"msg.payload = msg.payload.value.map(e => {\n return {\n \"Anrufzeit\": e.startDateTime,\n \"Anurfnummer\": e.callerNumber,\n \"Anrufdauer in Sekunden\" : e.duration,\n \"Display Name\": e.userDisplayName\n }\n})\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":600,"y":540,"wires":[["7da81c9ddc68e882"]]},{"id":"7da81c9ddc68e882","type":"ui_table","z":"9f11e0559d57c435","group":"4fce8c2af3820dd7","name":"","order":3,"width":"20","height":"15","columns":[],"outputs":0,"cts":false,"x":730,"y":540,"wires":[]},{"id":"4fce8c2af3820dd7","type":"ui_group","name":"Teams History","tab":"9bb60f34ca928aab","order":4,"disp":true,"width":"20","collapse":false,"className":""},{"id":"9bb60f34ca928aab","type":"ui_tab","name":"Hauptfenster","icon":"dashboard","disabled":false,"hidden":false}]