MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveEventTriggerId

Function resolveEventTriggerId

apps/sim/lib/workflows/triggers/run-options.ts:157–167  ·  view source on GitHub ↗
(block: TriggerBlockLike)

Source from the content-addressed store, hash-verified

155}
156
157function resolveEventTriggerId(block: TriggerBlockLike): string {
158 const selected = readSubBlockValue(block, 'selectedTriggerId')
159 if (typeof selected === 'string' && selected) {
160 return selected
161 }
162 const blockConfig = getBlock(block.type)
163 if (blockConfig?.triggers?.available?.length === 1) {
164 return blockConfig.triggers.available[0]
165 }
166 return block.type
167}
168
169function safeTriggerOutputs(triggerId: string): Record<string, unknown> | undefined {
170 try {

Callers 2

extractEventMockPayloadFunction · 0.85
buildTriggerRunOptionFunction · 0.85

Calls 2

getBlockFunction · 0.90
readSubBlockValueFunction · 0.70

Tested by

no test coverage detected