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": { |
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
{ | |
"results": [ | |
{ | |
"id": 922048, | |
"meta_description": "Assign teammates to partnership teams and enable them with edit access.", | |
"meta_title": null, | |
"meta_search": "opportunities, partnerships, teams, edit access, ", | |
"title": "Adding Opportunity Teams", | |
"links": { | |
"published_url": "https://ashoka.screenstepslive.com/s/salesforcehelp/m/50882/l/922048-adding-opportunity-teams", |
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": { | |
"title": "Sample API", | |
"description": "API description in Markdown.", | |
"version": "1.0.0" | |
}, | |
"paths": { | |
"/": { | |
"post": { |
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
// must be plain text, not rich text. | |
// ff user id is formula field to pull $user.Id, you can pass any id | |
{"id" : "{!ffUserID}"} |
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
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
} | |
} | |
} |
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": { | |
"title": "Sample API", | |
"description": "API description in Markdown.", | |
"version": "1.0.0" | |
}, | |
"paths": { | |
"/": { | |
"post": { |
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
Compromised User / Davice SOP | |
Freeze user | |
Notify techsupport (to freeze active directory account) | |
Revoke activations (setup - security controls - activations). note that both login IPs and activated browsers need to be revoked. | |
Revoke all oAuth connections (user detail - oAuth connected apps) | |
Revoke Third Party Account Links (ensures they need to reauthorize for SSO) | |
Review login history for any anomalies | |
If there are no anomalies | |
Add two factor authentication to user profile (permission set - system : two factor authentication required) |
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
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"> | |
<forceChatter:publisher context="RECORD" recordId="0F94F0000008QLySAM" /> | |
<forceChatter:feed type="Record" subjectId="0F94F0000008QLySAM" feedDesign="DEFAULT"/> | |
</aura:component> |
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
public class Flow_FindDupes { | |
//https://developer.salesforce.com/forums/?id=906F0000000AzDeIAK | |
@InvocableMethod(label='Get Dupes' description='Returns something') | |
public static List<Contact> getDuplicateContacts(List<Contact> contacts) { | |
system.debug('contacts size = ' + contacts.size()); | |
list<sObject> dasContacts = new list<sobject>(); | |
dasContacts.addall((List<sObject>)(contacts)); | |
list<Contact> duplicateContacts = new list<Contact>(); |
NewerOlder