You can generate an example script to send a REST message based on content and
parameters you provide in the method record.
시작하기 전에
Role required: web_service_admin or admin
이 태스크 정보
Generate an example script and use it as a starting point when scripting outbound
REST messages.
프로시저
Navigate to All > System Web Services > REST Message.
Select a REST message record.
In the HTTP Methods related list, select an HTTP method
record.
Ensure the HTTP method is configured as needed, including any variables.
Save the record.
In the Variable Substitutions related list, assign a value to
each variable.
Under Related Links, click Preview script
usage.
The instance displays the script that the REST message generated for this
method.
Copy this script and modify it as needed to use elsewhere in the
instance.
다음에 수행할 작업
Refer to the RESTMessageV2 and RESTResponseV2 APIs for more information on
available scripting methods. Outbound REST scripting examples are also
available.