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

Function buildRemoveAttachmentUrl

apps/sim/tools/agiloft/utils.ts:111–119  ·  view source on GitHub ↗
(
  base: string,
  params: AgiloftRemoveAttachmentParams
)

Source from the content-addressed store, hash-verified

109}
110
111export function buildRemoveAttachmentUrl(
112 base: string,
113 params: AgiloftRemoveAttachmentParams
114): string {
115 const id = encodeURIComponent(params.recordId.trim())
116 const field = encodeURIComponent(params.fieldName.trim())
117 const position = encodeURIComponent(params.position)
118 return `${base}/ewws/EWRemoveAttachment?${buildEwBaseQuery(params)}&id=${id}&field=${field}&filePosition=${position}`
119}
120
121export function buildAttachmentInfoUrl(base: string, params: AgiloftAttachmentInfoParams): string {
122 const id = encodeURIComponent(params.recordId.trim())

Callers 1

route.tsFile · 0.90

Calls 1

buildEwBaseQueryFunction · 0.85

Tested by

no test coverage detected