For the complete documentation index, see llms.txt. This page is also available as Markdown.

UDFCALLAPI

CS.SPARK_UDFCALLAPI(xcall_block)

Call Spark service APIs.

Parameter
Description

xcall_block *

Range address of the Xcall block in upstream service. You can also use a named range for convenience. Example: $A$1:$B$4

xcall_block block

Create a UDFCallTableRange block in the Excel workbook (upstream service) to make an API call. The UDFCallTableRange block can be anywhere in your workbook but must be on the same sheet as the CS.SPARK_UDFCALLAPI function. The 4 row x 2 column table must include this information:

Key
Description
Example

CALLTYPE

SparkService

SparkService

FOLDERNAME

Name of the folder containing downstream service.

myfolder

SERVICENAME

Name of downstream service.

myservice

REQUESTBODY

Payload for calling downstream service. Must be in JSON format. You can copy the from the downstream service API Tester.

Output

The function will return a JSON formatted string with two parts.

  • The first, metadata, contains information about the call to the downstream service such as status, error_code, and response_time.

  • The second, data, contains the response body of the downstream service.

Sample response

Last updated