This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class License_Upgrade implements Database.Batchable<sObject> { | |
global Database.QueryLocator start(Database.BatchableContext BC){ | |
// Query all active users with Profile : 'Base Programs' | |
String query ='Select UsersId,Users.ProfileId,Users.UserPermissionsMarketingUser,Users.Name, LastModifiedDate,LoginType,createddate,SessionType From AuthSession Where LoginType = \'Application\' and SessionType = \'UI\' and createddate = today and lastmodifieddate = today Order by lastmodifieddate'; | |
return Database.getQueryLocator(query); | |
} | |
global void execute(Database.BatchableContext BC, List<AuthSession> AuthSesuserLst){ | |
Profile p = [SELECT Id, Name FROM Profile WHERE Name= 'Base Programs' LIMIT 1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "defaultDescription", | |
"version": "0.1", | |
"title": "defaultTitle" | |
}, | |
"paths": { | |
"/{site}/search": { | |
"get": { |
OlderNewer