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

Function buildRetrieveAttachmentUrl

apps/sim/tools/agiloft/utils.ts:101–109  ·  view source on GitHub ↗
(
  base: string,
  params: AgiloftRetrieveAttachmentParams
)

Source from the content-addressed store, hash-verified

99}
100
101export function buildRetrieveAttachmentUrl(
102 base: string,
103 params: AgiloftRetrieveAttachmentParams
104): string {
105 const id = encodeURIComponent(params.recordId.trim())
106 const field = encodeURIComponent(params.fieldName.trim())
107 const position = encodeURIComponent(params.position)
108 return `${base}/ewws/EWRetrieve?${buildEwBaseQuery(params)}&id=${id}&field=${field}&filePosition=${position}`
109}
110
111export function buildRemoveAttachmentUrl(
112 base: string,

Callers 1

route.tsFile · 0.90

Calls 1

buildEwBaseQueryFunction · 0.85

Tested by

no test coverage detected