Skip to content

Instantly share code, notes, and snippets.

Avatar
👩‍💻

Shruti Sridharan shrutis22

👩‍💻
View GitHub Profile
View AnnouncementsApp.js
/**
* This JavaScript file is created
* to initiate the CometD library,
* register CometD listeners, perform
* Channel Subscription and various
* other actions.
*
* @author Shruti Sridharan
* @since 27.11.17
* @revisions N/A
View Announcements.html
<apex:page standardStylesheets="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Announcements</title>
<meta httpequiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
View GDriveForSalesforce.html
<apex:page controller="GDriveForSalesforceCtrl" showHeader="true" sidebar="false" standardStylesheets="false" docType="html-5.0">
<apex:slds />
<style>
.slds-scope .slds-icon--xx-large {
height : 10rem;
width : 10rem;
}
.open-gdrive {
@shrutis22
shrutis22 / GDriveForSalesforceCtrl.cls
Created Nov 18, 2017
This class is created for using the Google Service APIs from Salesforce.
View GDriveForSalesforceCtrl.cls
/**
* This class is created for using
* the Google Service APIs from
* Salesforce.
*
* @author Shruti Sridharan
* @since 18.10.2017
* @revisions N/A
**/
public class GDriveForSalesforceCtrl {
@shrutis22
shrutis22 / IntelligentCaseRouter.cls
Created Sep 5, 2017
This class is created to assign the cases according to the context of the case issue. The context is found out with the help of Intent APIs.
View IntelligentCaseRouter.cls
/**
* This class is created to assign the
* cases according to the context of
* the case issue. The context is
* found out with the help of Intent
* APIs.
*
* @author Shruti Sridharan
* @since 05.09.2017
* @revisions N/A
@shrutis22
shrutis22 / CaseTrigger.cls
Created Sep 5, 2017
This trigger is created to run whenever a new case is created.
View CaseTrigger.cls
/**
* This trigger is created to run whenever
* a new case is created.
*
* @author Shruti Sridharan
* @since 05.09.2017
* @revisions N/A
**/
trigger CaseTrigger on Case ( after Insert ) {
IntelligentCaseRouter.assignOwners( Trigger.newMap.keyset() );
View FindIntent.html
<apex:page controller="FindIntentController" standardStylesheets="false" sidebar="false">
<!--Stylesheets-->
<apex:slds />
<apex:stylesheet value="{!$Resource.FindIntentCSS}" />
<!--Modal-->
<div id="mdlStatus" style="display:none">
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open">
<div class="slds-modal__container">
<header class="slds-modal__header">
@shrutis22
shrutis22 / FindIntentController.cls
Created Sep 2, 2017
This class is created to make a playground to try out Intent APIs and predict a block of text.
View FindIntentController.cls
/**
* This class is created to make a
* playground to try out Intent APIs
* and predict a block of text.
*
* @author Shruti Sridharan
* @since 30/08/2017
* @revisions N/A
**/
public class FindIntentController {
@shrutis22
shrutis22 / EinsteinAPIv2.cls
Created Sep 2, 2017
This class is created to make requests to various Einstein Endpoints.
View EinsteinAPIv2.cls
/**
* This class is created to make requests to
* various Einstein Endpoints.
*
* @author Shruti Sridharan
* @since 10/08/2017
* @revisions N/A
**/
public class EinsteinAPI {
////////////////////////
@shrutis22
shrutis22 / SentimentAnalysisResponse.cls
Created Aug 21, 2017
This class is created to receive the Response of Sentiment Analysis API.
View SentimentAnalysisResponse.cls
/**
* This class is created to receive
* the Response of Sentiment Analysis
* API.
*
* @author Shruti Sridharan
* @since 10/08/2017
* @revisions N/A
**/
global class SentimentAnalysisResponse {