get, request, attachment, path, api, request, response, send, soap, rest, get, post, put, delete

Method GetRequestAttachmentPath

API

Gets Request Attachment Path value

Watch this video to learn how to use this method

Have a problem with playback?
GetRequestAttachmentPath returns API request attachment path Let's see Sum API method We can see there is one attacment configured Name is Test, path is "test path" So we will use GetRequestAttachmentPath along with messagebox to read and output this value during runtime. Run the script and we can see the message box shows "test path"

Usage

Function GetRequestAttachmentPath(
    String Name,
    Boolean Report [Optional]
)

CreateBook

ZAP API Method step

GetReq...Path

book

True

path

Name

Report

Output Parameter

Parameters

Name

Type: String

The name of the Attachment

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Attachment Path

Example

VBScript

msgbox Server("API Server").Method("CreateBook").GetRequestAttachmentPath("book", True)

JavaScript

alert(Server("API Server").Method("CreateBook").GetRequestAttachmentPath("book", true));

CreateBook

ZAP API Method step

GetReq...Path

book

True

path

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Var...("path")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552