Azure Logic App. Write to different blob containers, based on email attachment name





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I am in the process of creating an Azure Logic App.



My requirements are as follow:




  1. Check Office365 mailbox every 5 minutes for new mail.

  2. Trigger when new email with attachment is detected.

  3. Copy that attachment (.xls file) and place in respective blob folder, based on name of attachment.


I have the following so far. The mail trigger with attachment is set, and is set to check every 5 minutes.



enter image description here



How can I, based on the name of the attachment, write to different blob folders?










share|improve this question























  • Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

    – Joey Cai
    Nov 23 '18 at 5:55













  • @JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

    – monstertjie_za
    Nov 23 '18 at 6:20











  • What your criteria for the classification about the attachment name?

    – Joey Cai
    Nov 23 '18 at 6:33













  • If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

    – monstertjie_za
    Nov 23 '18 at 6:46


















1















I am in the process of creating an Azure Logic App.



My requirements are as follow:




  1. Check Office365 mailbox every 5 minutes for new mail.

  2. Trigger when new email with attachment is detected.

  3. Copy that attachment (.xls file) and place in respective blob folder, based on name of attachment.


I have the following so far. The mail trigger with attachment is set, and is set to check every 5 minutes.



enter image description here



How can I, based on the name of the attachment, write to different blob folders?










share|improve this question























  • Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

    – Joey Cai
    Nov 23 '18 at 5:55













  • @JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

    – monstertjie_za
    Nov 23 '18 at 6:20











  • What your criteria for the classification about the attachment name?

    – Joey Cai
    Nov 23 '18 at 6:33













  • If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

    – monstertjie_za
    Nov 23 '18 at 6:46














1












1








1








I am in the process of creating an Azure Logic App.



My requirements are as follow:




  1. Check Office365 mailbox every 5 minutes for new mail.

  2. Trigger when new email with attachment is detected.

  3. Copy that attachment (.xls file) and place in respective blob folder, based on name of attachment.


I have the following so far. The mail trigger with attachment is set, and is set to check every 5 minutes.



enter image description here



How can I, based on the name of the attachment, write to different blob folders?










share|improve this question














I am in the process of creating an Azure Logic App.



My requirements are as follow:




  1. Check Office365 mailbox every 5 minutes for new mail.

  2. Trigger when new email with attachment is detected.

  3. Copy that attachment (.xls file) and place in respective blob folder, based on name of attachment.


I have the following so far. The mail trigger with attachment is set, and is set to check every 5 minutes.



enter image description here



How can I, based on the name of the attachment, write to different blob folders?







c# azure cloud azure-logic-apps






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 4:30









monstertjie_zamonstertjie_za

2,23341436




2,23341436













  • Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

    – Joey Cai
    Nov 23 '18 at 5:55













  • @JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

    – monstertjie_za
    Nov 23 '18 at 6:20











  • What your criteria for the classification about the attachment name?

    – Joey Cai
    Nov 23 '18 at 6:33













  • If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

    – monstertjie_za
    Nov 23 '18 at 6:46



















  • Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

    – Joey Cai
    Nov 23 '18 at 5:55













  • @JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

    – monstertjie_za
    Nov 23 '18 at 6:20











  • What your criteria for the classification about the attachment name?

    – Joey Cai
    Nov 23 '18 at 6:33













  • If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

    – monstertjie_za
    Nov 23 '18 at 6:46

















Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

– Joey Cai
Nov 23 '18 at 5:55







Do you want the blob folder the same name with attachment name, or just want to send attachment to several blob folder with some condition?

– Joey Cai
Nov 23 '18 at 5:55















@JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

– monstertjie_za
Nov 23 '18 at 6:20





@JoeyCai The folders already exist, I just need to, based on the name of the attachment, add it to a certain folder.

– monstertjie_za
Nov 23 '18 at 6:20













What your criteria for the classification about the attachment name?

– Joey Cai
Nov 23 '18 at 6:33







What your criteria for the classification about the attachment name?

– Joey Cai
Nov 23 '18 at 6:33















If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

– monstertjie_za
Nov 23 '18 at 6:46





If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.

– monstertjie_za
Nov 23 '18 at 6:46












1 Answer
1






active

oldest

votes


















1















If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.




According to your description, I think you could use a condition to achieve what you want.



When your Attachment Name contains "hello", it will go to /data/f1 folder, otherwise it will go to /data/f2 folder. You could refer to the snapshot as below:
enter image description here



Also, if you have two more folders, you could Add a parallel branch under the MailBox trigger.
enter image description here






share|improve this answer
























  • This is perfect. Thanks

    – monstertjie_za
    Nov 23 '18 at 7:29












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53440671%2fazure-logic-app-write-to-different-blob-containers-based-on-email-attachment-n%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1















If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.




According to your description, I think you could use a condition to achieve what you want.



When your Attachment Name contains "hello", it will go to /data/f1 folder, otherwise it will go to /data/f2 folder. You could refer to the snapshot as below:
enter image description here



Also, if you have two more folders, you could Add a parallel branch under the MailBox trigger.
enter image description here






share|improve this answer
























  • This is perfect. Thanks

    – monstertjie_za
    Nov 23 '18 at 7:29
















1















If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.




According to your description, I think you could use a condition to achieve what you want.



When your Attachment Name contains "hello", it will go to /data/f1 folder, otherwise it will go to /data/f2 folder. You could refer to the snapshot as below:
enter image description here



Also, if you have two more folders, you could Add a parallel branch under the MailBox trigger.
enter image description here






share|improve this answer
























  • This is perfect. Thanks

    – monstertjie_za
    Nov 23 '18 at 7:29














1












1








1








If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.




According to your description, I think you could use a condition to achieve what you want.



When your Attachment Name contains "hello", it will go to /data/f1 folder, otherwise it will go to /data/f2 folder. You could refer to the snapshot as below:
enter image description here



Also, if you have two more folders, you could Add a parallel branch under the MailBox trigger.
enter image description here






share|improve this answer














If the file name contains X, send it to FolderExampleName1, if file name contains Y, send it to FolderExample2.




According to your description, I think you could use a condition to achieve what you want.



When your Attachment Name contains "hello", it will go to /data/f1 folder, otherwise it will go to /data/f2 folder. You could refer to the snapshot as below:
enter image description here



Also, if you have two more folders, you could Add a parallel branch under the MailBox trigger.
enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 7:19









Joey CaiJoey Cai

6,0951211




6,0951211













  • This is perfect. Thanks

    – monstertjie_za
    Nov 23 '18 at 7:29



















  • This is perfect. Thanks

    – monstertjie_za
    Nov 23 '18 at 7:29

















This is perfect. Thanks

– monstertjie_za
Nov 23 '18 at 7:29





This is perfect. Thanks

– monstertjie_za
Nov 23 '18 at 7:29




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53440671%2fazure-logic-app-write-to-different-blob-containers-based-on-email-attachment-n%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?