Method
Scope
GET
ZohoFSM.functions.execute.READ
POST
ZohoFSM.functions.execute.CREATE
Name | Description |
Body | Any input that is passed as a stream to the request can be fetched using the component body of APIRequest. body = APIRequest.get("body"); |
Parameters | The parameter values passed in the request can be fetched using the component params of APIRequest. If the parameter value is a key-value pair, then use: parameters = APIRequest.get("params").get(<key>); If the parameter value is a JSON object, name the key as arguments, and use: parameters = APIRequest.get("params").get("arguments").get(<key>); |
File Content | Any multipart content like a file can be fetched using the component file_content of APIRequest. fileContent = APIRequest.get("file_content"); Maximum allowed file size is 4MB. Supported file types: .txt, .csv, .xml, .json |
User Information | Details about the user can be fetched using the component user_info of APIRequest. userInfo = APIRequest.get("user_info"); |
Authentication Method | The name of the HTTP method (GET, POST, etc.) used in the request can be fetched using the component method of APIRequest. method = APIRequest.get("method"); |
Authentication Type | The name of the authentication method used in the request can be fetched using the component auth_type of APIRequest. authType = APIRequest.get("auth_type"); |
Headers | The information that is available in header (e.g. additional information about the request) can be fetched using the component headers of APIRequest. headers = APIRequest.get("headers"); |
fileContent = APIRequest.get("file_content"); myfile = fileContent.tofile("sf.csv"); headers = APIRequest.get("headers"); body = APIRequest.get("body"); auth_type = APIRequest.get("auth_type"); params = APIRequest.get("params"); uinfo = APIRequest.get("user_info"); method = APIRequest.get("method"); info "File Content: " + fileContent; info "Headers: " + headers; info "Body: " + body; info "Auth Type: " + auth_type; info "Params: " + params; info "User Info: " + uinfo; info "Method: " + method; sendmail [ from :zoho.adminuserid to :zoho.adminuserid subject :"Testing Standalone Function with File Attachment" message :APIRequest Attachments :file:myfile ] return APIRequest; |
rest = invokeurl [ url :"https://fsm.zoho.com/fsm/v1/functions/createcontact1/actions/execute?auth_type=oauth" type :GET parameters:{"Last_Name":"Robins","Email":"lucy.robins@zylker.com"} headers:Map() connection:"fsm" ]; return rest; |
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.