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;
}
I am in the process of creating an Azure Logic App.
My requirements are as follow:
- Check Office365 mailbox every 5 minutes for new mail.
- Trigger when new email with attachment is detected.
- 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.
How can I, based on the name of the attachment, write to different blob folders?
c# azure cloud azure-logic-apps
add a comment |
I am in the process of creating an Azure Logic App.
My requirements are as follow:
- Check Office365 mailbox every 5 minutes for new mail.
- Trigger when new email with attachment is detected.
- 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.
How can I, based on the name of the attachment, write to different blob folders?
c# azure cloud azure-logic-apps
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
add a comment |
I am in the process of creating an Azure Logic App.
My requirements are as follow:
- Check Office365 mailbox every 5 minutes for new mail.
- Trigger when new email with attachment is detected.
- 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.
How can I, based on the name of the attachment, write to different blob folders?
c# azure cloud azure-logic-apps
I am in the process of creating an Azure Logic App.
My requirements are as follow:
- Check Office365 mailbox every 5 minutes for new mail.
- Trigger when new email with attachment is detected.
- 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.
How can I, based on the name of the attachment, write to different blob folders?
c# azure cloud azure-logic-apps
c# azure cloud azure-logic-apps
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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:
Also, if you have two more folders, you could Add a parallel branch
under the MailBox trigger.
This is perfect. Thanks
– monstertjie_za
Nov 23 '18 at 7:29
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
Also, if you have two more folders, you could Add a parallel branch
under the MailBox trigger.
This is perfect. Thanks
– monstertjie_za
Nov 23 '18 at 7:29
add a comment |
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:
Also, if you have two more folders, you could Add a parallel branch
under the MailBox trigger.
This is perfect. Thanks
– monstertjie_za
Nov 23 '18 at 7:29
add a comment |
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:
Also, if you have two more folders, you could Add a parallel branch
under the MailBox trigger.
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:
Also, if you have two more folders, you could Add a parallel branch
under the MailBox trigger.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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