skip to Main Content

Azure Function to Generate file from JSON contentByte – Microsoft Graph API Email generation

Im having problem writting an azure function which takes blob input (JSON) and create a file using the contentbyte column from the JSON file. JSON Template: { "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('XXX.com')/messages('AQMkADAA3D%3D')/attachments", "value":[ { "@odata.type":"#microsoft.graph.fileAttachment", "@odata.mediaContentType":"application/pdf", "id":"AQMkADA0NjA5YT", "lastModifiedDateTime":"2023-06-29T14:40:33Z", "name":"MISC.pdf", "contentType":"application/pdf", "size":314000, "isInline":false, "contentId":"5E2D20ED5265174C8C9DC1AD59FFA4outlook.com", "contentLocation":null,…

VIEW QUESTION

Replacing letters in a string using javaScript

function dnaStrand(dna){ const compl = dna; dna.includes("A") && compl.replace(/A/g, "T"); dna.includes("T") && compl.replace(/T/g, "A") dna.includes("C") && compl.replace(/C/g, "G") dna.includes("G") && compl.replace(/G/g, "C") console.log(compl) return compl } I intend to form the complementary dna strand, that is, A is complementary to…

VIEW QUESTION
Back To Top
Search