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

Function buildAttachFileUrl

apps/sim/tools/agiloft/utils.ts:132–142  ·  view source on GitHub ↗
(
  base: string,
  params: AgiloftBaseParams & { recordId: string; fieldName: string },
  fileName: string
)

Source from the content-addressed store, hash-verified

130}
131
132export function buildAttachFileUrl(
133 base: string,
134 params: AgiloftBaseParams & { recordId: string; fieldName: string },
135 fileName: string
136): string {
137 const { kb, table } = encodeTable(params)
138 const recordId = encodeURIComponent(params.recordId.trim())
139 const fieldName = encodeURIComponent(params.fieldName.trim())
140 const encodedFileName = encodeURIComponent(fileName)
141 return `${base}/ewws/EWAttach?$KB=${kb}&$table=${table}&$lang=en&id=${recordId}&field=${fieldName}&fileName=${encodedFileName}`
142}
143
144export function buildGetChoiceLineIdUrl(
145 base: string,

Callers 1

route.tsFile · 0.90

Calls 1

encodeTableFunction · 0.85

Tested by

no test coverage detected