Run Cron Jobs expression and Query Lightning Flexipage
String cronExp = '0 20 11 * * ?'; // Runs every day at 11:20 AM
System.schedule('LeadOneToolJob1', cronExp, new LeadOneToolScheduler());
Retrive : Lighting Record Pages
SELECT Id, DeveloperName, MasterLabel, LastModifiedDate, Type, EntityDefinitionId FROM FlexiPage WHERE Type= 'RecordPage' AND EntityDefinitionId= 'Case' Order By LastModifiedDate DESC
Note : Enable Tooling API?
Retrive : Lighting Page layouts
SELECT Id, Name, EntityDefinitionId, EntityDefinition.QualifiedApiName FROM Layout Where EntityDefinition.QualifiedApiName = 'Case'
Note : Enable Tooling API?
Comments
Post a Comment