Skip to content

Instantly share code, notes, and snippets.

global class CalculateBusinessHoursDiff {
global class request
{
@InvocableVariable(label='Business Hours Id' required = true)
global String businessHoursId;
@InvocableVariable(label='Start Date' required = true)
global DateTime startDate;
@InvocableVariable(label='End Date' required = true)
global DateTime endDate;
}
global class CalculateNextBusinessDate {
global class request
{
@InvocableVariable (label='Start Date' required = true)
global DateTime givenDateTime;
@InvocableVariable (label='Business Hours Id' required = true)
global String businessHoursId;
}
global class response
{
<aura:component implements="lightning:availableForFlowScreens" access="global">
<aura:attribute name="mydata" type="conference360__Event__c[]"/>
<aura:attribute name="selectedRows" type="conference360__Event__c[]"/>
<aura:attribute name="mycolumns" type="List"/>
<aura:attribute name="column1_label" type="String"/>
<aura:attribute name="column1_fieldName" type="String"/>
<aura:attribute name="column1_type" type="String"/>
global class calculateIsInsideBusinessHours {
global class request
{
@InvocableVariable (label='Date' required = true)
global DateTime givenDateTime;
@InvocableVariable (label='Business Hours Id' required = true)
global String businessHoursId;
}
global class addBusinessHours {
global class request
{
@InvocableVariable (label='Start Date' required = true)
global DateTime startDateTime;
@InvocableVariable (label='Business Hours Id' required = true)
global String businessHoursId;
@InvocableVariable (label='Interval To Add (Milliseconds)' required = true)
global Long intervalMilliseconds;
}
<?xml version="1.0" encoding="UTF-8" ?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>47.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Professor Flow | Visual Nav</masterLabel>
<targets>
<target>lightning__FlowScreen</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__FlowScreen">
import {
LightningElement,
api,
track
} from "lwc";
import {
FlowAttributeChangeEvent
} from "lightning/flowSupport";
import {
FlowNavigationNextEvent
<template>
<lightning-layout multiple-rows="true">
<template for:each={items} for:item="item">
<lightning-layout-item class="slds-m-around_xxx-small" key={item.uniqueId}>
<div class="slds-visual-picker" tabindex="0" onkeyup={handleKeyUp} data-outputlabel={item.label}
data-outputsublabel={item.sublabel} data-outputvalue={item.value} data-outputunique={item.uniqueId}>
<input type="radio" onclick={handleChange} name="visualList" id={item.uniqueId} tabindex="-1"
title={item.label} value={item.value} data-outputlabel={item.label} data-outputsublabel={item.sublabel}
data-outputvalue={item.value} data-outputunique={item.uniqueId} />
<label for={item.uniqueId}>
<!--
Copyright 2017 OpFocus, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
<design:component label="Professor Flow - LookUp" >
<design:attribute name="objectName" label="I1_Object Name" />
<design:attribute name="displayFieldName" label="I2_Display Which Field?"/>
<design:attribute name="label" label="I3_Field Label" />
<design:attribute name="valueFieldName" label="I4_Output Which Field as Value?" />
<design:attribute name="parentChild" label="I5_'Parent' or 'Child' Lookup?" />
<design:attribute name="filterFieldName" label="I6_Filter on which field?" />
<design:attribute name="filterFieldValue" label="I7_Filter Value" />
<design:attribute name="selectedValue" label="O1_Output Value" />