Show:      

CollabMSGraphClient

Signature
global with sharing class CollabMSGraphClient

Enums

Name Signature Values
ShareAccessType
global enum ShareAccessType
VIEW, EDIT

CollabMSGraphClient Methods

arrayOfChats(parser)

Signature
global static List<Chat> arrayOfChats(JSONParser parser)

createChatMessage(userId, channelName, htmlMessage)

Signature
global static CreateChatMessageResponse createChatMessage(String userId,String channelName,String htmlMessage)
Parameters
userId
Type: String
UserId or empty for "current user"
channelName
Channel name
htmlMessage
Message in HTML
Returns
Completion status
Example
 // Send "html message" on "channel topic" using current sfdc user. 
 cadmus_una.CollabMSGraphClient.createChatMessage(null,'channel topic','html message');

createChatMessageWithQueue(userId, channelName, htmlMessage, queueable)

Signature
global static CreateChatMessageResponse createChatMessageWithQueue(String userId,String channelName,String htmlMessage,List<Queueable> queueable)

createFolder(userId, driveId, parentId, name)

Signature
global static SaveFileResponse createFolder(String userId, String driveId, String parentId, String name)
See
creates a shareable link.
Signature
global static CreateLinkResponse createSharingLink(String userId, String driveId, String itemId)
Parameters
userId
Type: String
user ID
driveId
Type: String
drive ID
itemId
Type: String
item Id
expirationDate
expiration date
userEmails
user emails registerd as user in SharePoint
Returns
create a shareable link, the <var>link.webUrl</var> field contains the shareable link
Example
  cadmus_una.CollabMSGraphClient.GetDriveResponse dr=cadmus_una.CollabMSGraphClient.getDrive(UserInfo.getUserId(), 
       'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten'); 
  cadmus_una.CollabMSGraphClient.GetDriveResponse di=cadmus_una.CollabMSGraphClient.getDriveItemByPath(UserInfo.getUserId(), 
       dr.data.id, '/General/Test Corelus.docx'); 
   cadmus_una.CollabMSGraphClient.createSharingLink(UserInfo.getUserId(),dr.data.id,di.data.id);

ensurePath(userId, driveId, path)

Signature
global static Boolean ensurePath(String userId, String driveId, String path)
See

getDrive(userId, siteUrl)

Get drive from URL. You probably do not want to use this. #getSiteDrive()
Signature
global static GetDriveResponse getDrive(String userId, String siteUrl)
Parameters
userId
Type: String
user Id
siteUrl
Type: String
site URL
Returns
corresponding drive
See
CollabMSGraphClient.getSiteDrive()

getDriveItemByPath(userId, driveId, path)

Signature
global static GetDriveResponse getDriveItemByPath(String userId, String driveId, String path)
See

getDriveItemsById(userId, driveId, childId)

Retrieve drive items(children) in drive "driveId" identified by <var>childId<var>
Signature
global static GetDriveContentResponse getDriveItemsById(String userId, String driveId, String childId)
Parameters
userId
Type: String
User Id
driveId
Type: String
drive ID
childId
Type: String
child id
Returns
drive item with id <var>childId</var>. See: GetDriveContentResponse
See
CollabMSGraphClient.getDriveItemByPath to get the children
Example
void listChildren(String driveId,String childId,Integer level){ 
cadmus_una.CollabMSGraphClient.GetDriveContentResponse contentResponse=cadmus_una.CollabMSGraphClient.getDriveItemsById( 
UserInfo.getUserId(),driveId,childId); 
for(cadmus_una.MsGraphContentResponse.Value v: contentResponse.data.value){ 
System.debug(LoggingLevel.DEBUG,'-'.repeat(level)+v.name+'('+((v.folder==null)?'file':v.folder.childCount+')')); 
System.debug(LoggingLevel.DEBUG,v.folder); 
if(v.folder!=null){ 
listChildren(driveId,v.id,level+1); 
} 
} 
} 
cadmus_una.CollabMSGraphClient.GetDriveResponse dr=cadmus_una.CollabMSGraphClient.getSiteDrive(UserInfo.getUserId(), 
'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten'); 
cadmus_una.CollabMSGraphClient.GetDriveResponse di=cadmus_una.CollabMSGraphClient.getDriveItemByPath(UserInfo.getUserId(), dr.data.id, '/General'); 
listChildren(dr.data.id,di.data.id,0);

getDriveItemsByPath(userId, driveId, path)

Retrieve drive items (children) in drive "driveId" at path <var>path</var>
Signature
global static GetDriveContentResponse getDriveItemsByPath(String userId, String driveId, String path)
Parameters
userId
Type: String
User Id
driveId
Type: String
drive ID
path
Type: String
path
Returns
drive items (children) at path <var>path</var>. See: GetDriveContentResponse
See
CollabMSGraphClient.getDriveItemByPath to get the item itself
Example
 String userId = "user123"; 
  String driveId = "drive123"; 
  String path = "Documents/Reports"; 
 
  cadmus_una.CollabMSGraphClient.GetDriveContentResponse response = cadmus_una.CollabMSGraphClient.getDriveItemsByPath(userId, driveId, path); 
 
  if (response.error != null) { 
      System.out.println("Error code: " + response.error.code); 
      System.out.println("Error message: " + response.error.message); 
  } else { 
      System.out.println("Drive content: " + response.data); 
  }

getFile(userId, url, isLibrary, path)

Gets a SharePoint file
Signature
global static GetFileResponse getFile(String userId, String url, Boolean isLibrary, String path)
Parameters
userId
Type: String
the user of which the SharePoint credentials should be used. Current user: UserInfo.getUserId()
url
Type: String
Site Library Url
isLibrary
Type: Boolean
unless you are using an old version, use "true"
path
Type: String
sharepoint library folder patch
Returns
GetFileResponse object
Example
 cadmus_una.CollabMSGraphClient.getFile(UserInfo.getUserId(), 'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten', 
       true, '/General/Test Corelus.docx'); => the blob is on “response.data”

getFileAsPDF(userId, url, isLibrary, path)

Converts a SharePoint file into PDF - Remote Site Setting: https://westeurope1-mediap.svc.ms
Signature
global static GetFileResponse getFileAsPDF(String userId, String url, Boolean isLibrary, String path)
Parameters
userId
Type: String
the user of which the SharePoint credentials should be used. Current user: UserInfo.getUserId()
url
Type: String
Site Library Url
isLibrary
Type: Boolean
unless you are using an old version, use "true"
path
Type: String
sharepoint library folder patch
Returns
GetFileResponse object
Example
 cadmus_una.CollabMSGraphClient.getFileAsPDF(UserInfo.getUserId(), 'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten', 
 true, '/General/Test Corelus.docx'); => the blob is on “response.data”

getRefreshedToken(userId)

Get a refreshed OAuth token. This method will save this token to the user, so afterwards, it will not be possible to callout to SharePoint in the same request
Signature
global static String getRefreshedToken(String userId)
Parameters
userId
Type: String
the user id
Returns
refreshed token

getSiteDrive(userId, libraryUrl)

Signature
global static GetDriveResponse getSiteDrive(String userId, String libraryUrl)
See

isSubsite(domain, siteName, possibleSubSiteName, token)

Signature
global static Boolean isSubsite(String domain,String siteName,String possibleSubSiteName,String token)
Parameters
domain
Type: String
Sharepoint domain
siteName
Sharepoint site
possibleSubSiteName
Sharepoint subsite
token
Sharepoint auth token
Returns
Whether <var>possibleSubSiteName</var> is a sub site of <var>siteName</var> for domain <var>domain</var>
See
CollabOAuthController.getSavedToken

isTokenValid(userId)

Check Sharepoint <var>access_token</var> token validity.
Signature
global static Boolean isTokenValid(String userId)
Parameters
userId
Type: String
User Id with the <var>access_token</var> to check
Returns
validity of the access_token.

parse(json)

Signature
global static CreateLinkResponseData parse(String json)

refreshToken(userId)

Get a refreshed OAuth token. This method will save this token to the user, so afterwards, it will not be possible to callout to SharePoint in the same request
Signature
global static String refreshToken(String userId)
Parameters
userId
Type: String
the user id
Returns
refreshed token

refreshTokenWithQueue(userId, queueables)

Signature
global static String refreshTokenWithQueue(String userId,List<Queueable> queueables)

renameFolder(userId, url, isLibrary, basePath, sourceName, targetName)

Signature
global static SaveFileResponse renameFolder(String userId,String url, Boolean isLibrary, String basePath, String sourceName,String targetName)
See

sanitizeFileName(dirtyFilename)

Signature
global static String sanitizeFileName(String dirtyFilename)
See

sanitizeFolderName(dirtyFolderName)

Signature
global static String sanitizeFolderName(String dirtyFolderName)
See

sanitizeFolderOrFileName(dirtyFolderOrFilename)

Only use if required. This attempt to detect if it's a file or folder by looking up for a dot (".") and apply the "appropriate" sanitization.
Signature
global static String sanitizeFolderOrFileName(String dirtyFolderOrFilename)
Parameters
dirtyFolderOrFilename
Type: String
file or folder name
Returns
sanitized folder or file name

sanitizeFolderPath(dirtyFolderPath)

Signature
global static String sanitizeFolderPath(String dirtyFolderPath)
See

saveFile(userId, url, isLibrary, path, fileContent)

Saves a file to the specified path in a drive or document library.
Signature
global static SaveFileResponse saveFile(String userId, String url, Boolean isLibrary, String path, Blob fileContent)
Parameters
userId
Type: String
The user ID for which the file should be saved.
url
Type: String
The URL of the SharePoint site or document library where the file should be saved.
isLibrary
Type: Boolean
A boolean indicating whether the destination is a document library (true) or a SharePoint site (false).
path
Type: String
The path to save the file, including the file name and extension.
fileContent
Type: Blob
The content of the file as a Blob.
Returns
A SaveFileResponse object containing either the saved file's metadata or an error object.
Example
 String userId = 'user123'; 
 String url = 'https://example.sharepoint.com/sites/MySite/Shared Documents'; 
 Boolean isLibrary = true; 
 String path = 'MyCoolFolder/MyFile.txt'; 
 Blob fileContent = Blob.valueOf('Hello, world!'); //this can be the VersionData of a ContentVersion 
 
 cadmus_una.CollabMSGraphClient.SaveFileResponse response = cadmus_una.CollabMSGraphClient.saveFile(userId, url, isLibrary, path, fileContent); 
 if (response.error != null) { 
     System.debug('Error code: ' + response.error.code); 
     System.debug('Error message: ' + response.error.message); 
 } else { 
     System.debug('File saved: ' + response.data.name); 
 }

saveFile(userId, driveUrl, path, fileContent)

Save file in a site drive
Signature
global static SaveFileResponse saveFile(String userId, String driveUrl, String path, Blob fileContent)
Parameters
userId
Type: String
user ID
driveUrl
Type: String
drive URL
path
Type: String
target path
fileContent
Type: Blob
file content
Returns
saved file

saveFileById(userId, driveId, parentId, fileName, fileContent)

Signature
global static SaveFileResponse saveFileById(String userId, String driveId, String parentId, String fileName, Blob fileContent)
See

updateColumns(userId, driveId, itemId, fields)

Update columns values (fields) for file in a site drive using IDs. Warning: the files has to be part of a LIST.
Signature
global static SaveFileResponse updateColumns(String userId,String driveId, String itemId,Map<String,String> fields)
Deprecated
Parameters
userId
Type: String
user ID
driveId
drive ID
itemId
Type: String
parent ID
fields
custom columns values (fields) for file
Returns
saved file, the id field contains the list item id
See
CollabMSGraphClient.getDriveItemByPath - to retrieve itemId from drive and path, CollabMSGraphClient.getDrive - to retrieve driveId for sites, CollabMSGraphClient.getSiteDrive - to retrieve driveId for lists
Example
  cadmus_una.CollabMSGraphClient.GetDriveResponse dr=cadmus_una.CollabMSGraphClient.getDrive(userId, 
      'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten'); 
  cadmus_una.CollabMSGraphClient.GetDriveResponse di=cadmus_una.CollabMSGraphClient.getDriveItemByPath(userId, 
      dr.data.id, '/General/Test Corelus.docx'); 
  Map<String,String> fields=new Map(); 
  fields.put('fooProp','test'); 
  fields.put('MyNumberCol',42); 
  cadmus_una.CollabMSGraphClient.updateColumns(userId,dr.data.id,di.data.id,fields);

updateContentType(userId, driveId, itemId, contentTypeId)

Update ContentType for file in a site drive using IDs. Warning: the files has to be part of a LIST.
Signature
global static SaveFileResponse updateContentType(String userId,String driveId, String itemId,String contentTypeId)
Parameters
userId
Type: String
user ID
driveId
drive ID
itemId
Type: String
parent ID
contentTypeId
custom ContentType for file
Returns
saved file, the id field contains the list item id

updateMetadataColumns(userId, driveId, itemId, fields)

Update columns values (fields) for file in a site drive using IDs. Warning: the files has to be part of a LIST.
Signature
global static SaveFileResponse updateMetadataColumns(String userId,String driveId, String itemId,Map<String,Object> fields)
Parameters
userId
Type: String
user ID
driveId
drive ID
itemId
Type: String
parent ID
fields
custom columns values (fields) for file
Returns
saved file, the id field contains the list item id
See
CollabMSGraphClient.getDriveItemByPath - to retrieve itemId from drive and path, CollabMSGraphClient.getDrive - to retrieve driveId for sites, CollabMSGraphClient.getSiteDrive - to retrieve driveId for lists
Example
   // Get site or drive information 
   cadmus_una.CollabMSGraphClient.GetDriveResponse dr=cadmus_una.CollabMSGraphClient.getSiteDrive(UserInfo.getUserId(), 
      'https://cloudcrossingautomation.sharepoint.com/sites/Marketing21/Gedeelde documenten'); 
   // Get drive driveItem information 
   cadmus_una.CollabMSGraphClient.GetDriveResponse di=CollabMSGraphClient.getDriveItemByPath(UserInfo.getUserId(), 
      dr.data.id, '/General/Test Corelus.docx'); 
   // Create maps, keyed by sharepoint metadata column API Name an who's values are column values. 
   Map<String,Object> fields=new Map<String,Object>(); 
   fields.put('fooProp','test'); // fooProp column has value 'test' 
   fields.put('MyNumberCol',42); // MyNumberCol has value 42 
   // Update columns 
   cadmus_una.CollabMSGraphClient.updateMetadataColumns(UserInfo.getUserId(),dr.data.id,di.data.id,fields);

urlEncodeDirPath(url)

Convenience method for encoding url's pointing to a DIRECTORY.
Signature
global static String urlEncodeDirPath(String url)
Parameters
url
Type: global static String
Url to encode
Returns
url-encoded URL

urlEncodeFilePath(url)

Convenience method for encoding url's pointing to a FILE.
Signature
global static String urlEncodeFilePath(String url)
Parameters
url
Type: global static String
Url to encode
Returns
url-encoded URL

CollabMSGraphClient.Application

Signature
global class Application

CollabMSGraphClient.Application Properties

Name Signature
displayName
global String displayName
id
global String id

CollabMSGraphClient.Application Constructors

Application(parser)

Signature
global Application(JSONParser parser)

CollabMSGraphClient.Chat

Represent a chat
Signature
global class Chat

CollabMSGraphClient.Chat Properties

Name Signature Description
id
global String id
id of the chat
topic
global String topic
topic of the chat
webUrl
global String webUrl

CollabMSGraphClient.Chat Constructors

Chat(parser)

Signature
global Chat(JSONParser parser)

CollabMSGraphClient.CreateChatMessageResponse

Signature
global class CreateChatMessageResponse

CollabMSGraphClient.CreateChatMessageResponse Properties

Name Signature
error
global GraphErrorResponse error

CollabMSGraphClient.CreateChatMessageResponse Methods

isError()

Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.CreateDraftEmailResponse

Signature
global class CreateDraftEmailResponse

CollabMSGraphClient.CreateDraftEmailResponse Properties

Name Signature Description
data
global CreateDraftEmailResponseData data
Drive response data: CreateDraftEmailResponseData
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.CreateDraftEmailResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.CreateDraftEmailResponseData

Signature
global class CreateDraftEmailResponseData

CollabMSGraphClient.CreateDraftEmailResponseData Properties

Name Signature
id
global String id

CollabMSGraphClient.CreateDraftEmailResponseData Constructors

CreateDraftEmailResponseData(parser)

Signature
global CreateDraftEmailResponseData(JSONParser parser)

CreateDraftEmailResponseData(id)

Signature
global CreateDraftEmailResponseData(String id)

CollabMSGraphClient.CreateLinkResponse

Signature
global class CreateLinkResponse

CollabMSGraphClient.CreateLinkResponse Properties

Name Signature
data
global CreateLinkResponseData data
error
global GraphErrorResponse error

CollabMSGraphClient.CreateLinkResponse Methods

isError()

Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.CreateLinkResponseData

Represent data on link creation
Signature
global class CreateLinkResponseData

CollabMSGraphClient.CreateLinkResponseData Properties

Name Signature Description
hasPassword
global Boolean hasPassword
Whether the link is password protected
id
global String id
id of the created link permission.
link
global Link link
The link
roles
global List<String> roles
Sharepoint roles

CollabMSGraphClient.CreateLinkResponseData Constructors

CreateLinkResponseData(parser)

Signature
global CreateLinkResponseData(JSONParser parser)

CollabMSGraphClient.DriveItemResponse

Class to wrap an item, eg File, in a folder
Signature
global class DriveItemResponse

CollabMSGraphClient.DriveItemResponse Properties

Name Signature Description
driveOrListId
global String driveOrListId
Drive or list ID, only populated by saveFile call!
id
global String id
id of the item
longSize
global Long longSize
name
global String name
name of the item
size
global Integer size
size of the item
webUrl
global String webUrl
Url to open the item

CollabMSGraphClient.DriveItemResponse Constructors

DriveItemResponse(parser)

Signature
global DriveItemResponse(JSONParser parser)

DriveItemResponse(id, name, longSize, webUrl)

Signature
global DriveItemResponse(String id,String name,Long longSize,String webUrl)

CollabMSGraphClient.GetChatsResponse

Signature
global class GetChatsResponse

CollabMSGraphClient.GetChatsResponse Properties

Name Signature
data
global GetChatsResponseData data
error
global GraphErrorResponse error

CollabMSGraphClient.GetChatsResponse Methods

isError()

Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)
Returns
whether there is a specific error designed by errorCode

CollabMSGraphClient.GetChatsResponseData

Represent chat response
Signature
global class GetChatsResponseData

CollabMSGraphClient.GetChatsResponseData Constructors

GetChatsResponseData(parser)

Signature
global GetChatsResponseData(JSONParser parser)

CollabMSGraphClient.GetDriveContentResponse

Class to wrap the Drive content returned from SharePoint
Signature
global class GetDriveContentResponse

CollabMSGraphClient.GetDriveContentResponse Properties

Name Signature Description
data
global MsGraphContentResponse data
Drive response data: MsGraphContentResponse
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.GetDriveContentResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.GetDriveResponse

Class to wrap the Drive information returned from SharePoint
Signature
global class GetDriveResponse

CollabMSGraphClient.GetDriveResponse Properties

Name Signature Description
data
global GetDriveResponseData data
Drive response data: GetDriveResponseData
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.GetDriveResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.GetDriveResponseData

Class to wrap the Drive response from SharePoint
Signature
global class GetDriveResponseData

CollabMSGraphClient.GetDriveResponseData Properties

Name Signature Description
downloadUrl
global String downloadUrl
Download Url
id
global String id
Drive id
parentReference
global ParentReference parentReference
Reference to the parent: ParentReference

CollabMSGraphClient.GetDriveResponseData Constructors

GetDriveResponseData(parser)

Signature
global GetDriveResponseData(JSONParser parser)

GetDriveResponseData(id)

Signature
global GetDriveResponseData(String id)

CollabMSGraphClient.GetFileResponse

Class to wrap the File returned from SharePoint
Signature
global class GetFileResponse

CollabMSGraphClient.GetFileResponse Properties

Name Signature Description
data
global Blob data
the return file
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.GetFileResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)

CollabMSGraphClient.GrantSharingLinkResponse

Signature
global class GrantSharingLinkResponse

CollabMSGraphClient.GrantSharingLinkResponse Properties

Name Signature Description
data
global GrantSharingLinkResponseData data
Information on grant
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.GrantSharingLinkResponse Methods

isError()

Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)
Returns
whether there is a specific error designed by errorCode

CollabMSGraphClient.GrantSharingLinkResponseData

Signature
global class GrantSharingLinkResponseData

CollabMSGraphClient.GrantSharingLinkResponseData Properties

Name Signature
granted
global Boolean granted

CollabMSGraphClient.GrantSharingLinkResponseData Constructors

GrantSharingLinkResponseData(parser)

Signature
global GrantSharingLinkResponseData(JSONParser parser)

GrantSharingLinkResponseData()

Signature
global GrantSharingLinkResponseData()

CollabMSGraphClient.GraphErrorResponse

Class to wrap the errors
Signature
global class GraphErrorResponse

CollabMSGraphClient.GraphErrorResponse Properties

Name Signature Description
code
global String code
error code
innerError
global GraphErrorResponse innerError
get more lower-level errors
message
global String message
error message

CollabMSGraphClient.GraphErrorResponse Constructors

GraphErrorResponse(parser)

Signature
global GraphErrorResponse(JSONParser parser)

GraphErrorResponse()

Signature
global GraphErrorResponse()
Signature
global class Link

CollabMSGraphClient.Link Constructors

Signature
global Link(JSONParser parser)

CollabMSGraphClient.ParentReference

reference to the parent
Signature
global class ParentReference

CollabMSGraphClient.ParentReference Properties

Name Signature Description
driveId
global String driveId
Id of the parent drive
path
global String path
path is the path of the PARENT, file path has to be computed as : drives/{{driveId}}/items/{{file.id}}

CollabMSGraphClient.ParentReference Constructors

ParentReference(parser)

Signature
global ParentReference(JSONParser parser)

ParentReference(driveId, path)

Signature
global ParentReference(String driveId,String path)

CollabMSGraphClient.SaveFileResponse

Response info after saving a File to SharePoint
Signature
global class SaveFileResponse

CollabMSGraphClient.SaveFileResponse Properties

Name Signature Description
data
global DriveItemResponse data
Info on the item saved: DriveItemResponse
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.SaveFileResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()
Returns
whether there is an error

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)
Returns
whether there is a specific error designed by errorCode

CollabMSGraphClient.SendEmailResponse

Signature
global class SendEmailResponse

CollabMSGraphClient.SendEmailResponse Properties

Name Signature Description
error
global GraphErrorResponse error
Error object see: GraphErrorResponse

CollabMSGraphClient.SendEmailResponse Methods

isError()

checks if there is an error present
Signature
global Boolean isError()

isError(errorCode)

checks if there is an error with a certain error-code present
Signature
global Boolean isError(String errorCode)