public class MicrosoftTeamsFunctions extends BaseFunctions
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
APPROVE_STRING |
protected static java.lang.String |
FLEXDEPLOY_LOGO |
protected java.lang.String |
REJECT_STRING |
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
MicrosoftTeamsFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
createCalendarEvent(java.lang.String pTeamsMessagingAccountCode,
JSONObject pCalendarEvent,
java.lang.String pUser)
Creates a calendar Event Requires a Teams Messaging Integration Account.
|
java.lang.String |
getGroovyKey() |
void |
sendTeamsWebhookMessage(java.lang.String pWebhookUrl,
java.lang.Object pMessage)
Sends a Microsoft Teams message to a team channel.
|
void |
sendTeamsWebhookMessage(java.lang.String pWebhookUrl,
java.lang.String pMessageTitle,
java.lang.String pMessageText,
java.lang.String pIconURL)
Sends a Microsoft Teams message to an Incoming Webhook associated to a team channel.
|
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
protected static final java.lang.String FLEXDEPLOY_LOGO
protected final java.lang.String APPROVE_STRING
protected final java.lang.String REJECT_STRING
public MicrosoftTeamsFunctions(boolean isExecute, LogFunctions pFLOG)
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions
public void sendTeamsWebhookMessage(java.lang.String pWebhookUrl, java.lang.String pMessageTitle, java.lang.String pMessageText, java.lang.String pIconURL) throws FlexCheckedException
pWebhookUrl
- - The URL to send the message topMessageTitle
- - Optional Title of the messagepMessageText
- The text for the message content. Can be plain text or html.pIconURL
- The URL for the icon of the sender of the message.FlexCheckedException
- All exceptionspublic void sendTeamsWebhookMessage(java.lang.String pWebhookUrl, java.lang.Object pMessage) throws FlexCheckedException
pWebhookUrl
- pMessage
- FlexNotFoundException
- When no Teams Account found for given codeFlexCheckedException
- All other exceptionspublic void createCalendarEvent(java.lang.String pTeamsMessagingAccountCode, JSONObject pCalendarEvent, java.lang.String pUser) throws FlexCheckedException
pTeamsMessagingAccountCode
- - The messaging account code for the Teams account.pCalendarEvent
- - JSON based on off of the website
https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=httppUser
- - Optional user's calendar to create the event on. If null,
the event is created for the Teams Messaging Integration
Account user.FlexCheckedException