How can i send notification to user about accepting the work item?
i have send notification to me, but how do i send the email to user who logged the work item?
any ideas ?
You requirements are a bit to complex to be handled out of the box. Please take a look at the Event Notification Plugin for TFS2010 hosted at codeplex under project name Team Alert: http://teamalert.codeplex.com/.
It is a server side extension for TFS 2010, which allows you sending E-Mail notifications to any person field in the event, regardless the field contain a SID, account name or display name.
The creator talks about your very needs on his own website: http://fszlin.dymetis.com/post/2011/03/22/Event-Notification-Plugin-for-TFS-2010.aspx.
The configuration for you could be something like this:
<alert name="Bug Changes" event="WorkItemChangedEvent"
filterExpression="$"CoreFields/StringFields/Field [ReferenceName='System.WorkItemType']/NewValue" = Bug AND $"CoreFields/StringFields/Field[ReferenceName='System.AuthorizedAs']/NewValue" <> $"CoreFields/StringFields/Field[ReferenceName='System.CreatedBy']/NewValue"">
<recipients>
<recipient
name="Owner" address="CoreFields/StringFields/Field[ReferenceName='System.CreatedBy']/NewValue"
type="DisplayNameField"
allowHtml="true"/>
</recipients>
</alert>
Does that solve your needs?
Related
I want to query the presence of users in a Slack workspace.
Using the old (classic) app, I can do it using presence_query via Slack RTM.
However, RTM requires depracted bot scopes (and the old classic app).
Can I use (and how) presence_query with the new slack app (I'm using python)?
This is my current implementation (using the old classic app):
from slack_sdk.rtm_v2 import RTMClient
rtm_client = RTMClient(token='SLACK_BOT_TOKEN')
#rtm_client.on("presence_change")
def receive_presence_changes(client:RTMClient, event:dict):
print(event)
rtm_client.connect()
rtm_client.send(
payload={
"type" : "presence_query",
'ids' : ids_list,
}
)
No, there are currently no ways to subscribe to presence-oriented events on the Events API or via Socket Mode. The legacy RTM API is the only avenue still available.
In a Delphi 10.4.2 VCL Application in Windows 10, I followed the TSendMail example here:
http://docwiki.embarcadero.com/CodeExamples/Sydney/en/TSendMail_(Delphi)
... to create a InternetSendMail1 action in the ActionList.
But when I execute this code:
var OK := InternetSendMail1.Execute;
CodeSite.Send('OK', OK);
OK returns True.
But nothing happens: No email is opened.
My email client Thunderbird is a regular registered MAPI mail client working perfectly for many years: For example, when I click a mailto link then a new email is created in Thunderbird etc.
So what must I do to make the InternetSendMail1 action work?
EDIT: I finally realized that what I want to do is not actually sending a mail but creating a mail with an attachment, so the user can edit it with a recipient, body, etc., and then send it after he has finished editing it. So I changed the question from "How to send a mail with TSendMail?" to "How to create a mail with TSendMail?".
I have a PHP script I've setup to generate an .ics file and email it to a person. The generated ics file works as intended in Microsoft Outlook 2010 but not on iOS devices. When the calendar event is launched in Outlook, the user is asked whether to accept or decline the event however when the user launches the same ics file on their iPhone, iOS only offers them to "Add to Calendar."
How can I force or make iOS ask the user to accept or decline the event?
Here's my mocked up ics file:
BEGIN:VCALENDAR
METHOD:REQUEST
VERSION:2.0
PRODID:-//TEST INC//TEST//EN
BEGIN:VEVENT
DTSTAMP:1402101843
SEQUENCE:0
UID:539236231203d
ORGANIZER:MAILTO:test#blahblah.com
ATTENDEE;RSVP=TRUE:mailto:test#blahblah.com
DTSTART;VALUE=DATE:20140612
DTEND;VALUE=DATE:20140613
CATEGORIES:MEETING
CLASS:PUBLIC
SUMMARY:Meeting Test
DESCRIPTION:Test
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 3.2//EN"">
<html><body><b>Test</b>
</body></html>
END:VEVENT
END:VCALENDAR
I guess I'm missing something in my ics file to communicate with Apple's standards?
I looked over at iCalendar .ics accept/decline on iOS but no solution was found.
Thanks!
I had this same issue (Outlook has Accept/Decline but iOS doesn't) and was able to fix it by adding the ORGANIZER line. It appears your syntax may be wrong. You have a colon after ORGANIZER instead of a semicolon. You may also need to fix the capitalization of mailto (should be MAILTO) in the ATTENDEE line.
Is there any way i can prefill any string in FBWebDialog? Any workaround would do,I am aware facebook has deprecated the message parameter from their sdk.
My scenario is user clicks on a facebook contact
FBWebDialog opens and then the message gets prefilled with some text instead of a blank textfield.
any help would be appreciated
Thanks
Okay, from the comments it sounds like you want to post on the user's wall. Here is a method that is available in the FB SDK that pulls up a share dialog within your app and supports pre filled text
[FBDialogs presentOSIntegratedShareDialogModallyFrom:self initialText:#"Initial text" image:nil url:nil handler:nil];
Example with pre filled text:
Which type of dialog are you opening? (Sounds like the Send dialog, if you want to send a Facebook message.)
I do not think it is possible to even send a message directly to a user from iOS. When performing the following I get the error "This dialog is not available on this device"
[FBWebDialogs presentDialogModallyWithSession:nil dialog:#"send" parameters ...
iOS FB SDK WebDialog reference shows the following methods:
+ presentRequestsDialogModallyWithSession:message:title:parameters:handler:
+ presentRequestsDialogModallyWithSession:message:title:parameters:handler:friendCache:
Those seem to support pre-populating the message field. They only support apprequests though (not messages) and whether the message is even attached is a bit unknown (all I saw when testing was "User wants you to try App", not the actual string I set).
The javascript API (which could maybe be pulled up in a webview?) doesn't have a parameter to set the message probably because the Send dialog documentation says:
Facebook messages are a channel for person-to-person communication,
and not for apps to send messages, or encourage people to spam their
friends.
If you just want to post a message/share then you can use a share sheet which looks to support an initial message:
[FBNativeDialogs presentShareDialogModallyFrom:self initialText:#"My text to share" ...
I'm building an internal app. I want to be able to press a button, and have the app automatically send a predefined email message to a specified email address, without the user knowing. I have access to a web-server, but I'm just not quite sure on what the best way to go about doing this is.
I'm using storyboard in xcode, this is a singleview application for the ipad.
Any suggestions are greatly appreciated.
You can create a PHP script that can do this (code below). Use a library such as ASIHTTPRequest to post the user's email address to the script and then the script will automatically send the message.
<?php
$to = $_POST["email"]; //this is the user's address; you can replace $_POST["email"] with "user#example.com" to try it out
$subject = "Subject";
$body = "Message";
$headers = "From: Name <noreply#example.com>\r\n" . "X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
//sent
}
?>
If you want to use the user's mail account that they have set up in the mail.app - you can't do that without the MFMailComposeViewController.
Solutions are:
Use some Framework or roll your own mail solution that you or the user fills with their respective mail acc data and then send mails.
or
Write a little PHP/Ruby/Java/... script that sends a mail which you can trigger via web request (i.e. REST).
SKPSMTPMessage works well for sending emails without the need for a UI.
(Make sure you add a reference to the CFNetwork.framework in your project.)