set XCom
Pushes an XCom value for downstream tasks to read.
Parameters
key
XCom key; defaults to XCOM_RETURN_KEY.
value
Value to push. Must be JSON-serializable. The SDK rejects byte arrays, so encode binary data as a string first, for example with Base64.
Throws
if the API call fails.
if value is or contains a type that the SDK cannot send, such as a byte array.