VBScript Lua
This GSE action creates a new comment to a download file.
An example call routing script can be found in A.4 - Example: Create Download Comment.
Configure action parameters
By double clicking a parameter in the list, you can edit it.
Domain Required
This is the URL of your IPS community page, for example: https://www.swyxforum.com
APIKey Required
This is the REST API Key to authenticate against your IPS community. You created it under 1 - Preparations.
Please make sure that you have configured the endpoint permissions correctly.
File Required
This is the id of the download file you want to create the new comment to. You can obtain the id from the address line of your browser when opening the target download file:
Author Required
This is id of the IPS community user you want to use as author of the new comment. You can obtain the id from the address line of your browser when opening that users' profile page:
Content Required
This is the content of the new comment.
Hidden
Should the new comment be visible to all users?
0 - the new comment will be visible to all users
1 - the new comment will be hidden, i.e. only visible to moderators and administrators, and needs approval to become visible
May be omitted. Default: 0
Anonymous
Should the new comment be be created as anonymous author?
0 - the new comment will be created for the above given author
1 - the new comment will be created as anyonymous author
May be omitted. Default: 0
Configure action exits
Exit 0 (Default)
This exit will be reached when everyhting worked fine and the download comment was created. It is recommmended to name this exit "ok" or "created".
Exit 1
This exit will be reached when there was any kind of problem and no download comment has been created. It is recommended to name this exit "failed".
If you reach this exit you can refer to 3.7 - Trouble Shooting to figure what went wrong.
Additional return value (as global variable)
g_sIPSLatestCreatedDownloadCommentURL (string)
This global variable holds the URL of the newly created download comment after the ok (0) exit has been reached.
By Tom Wellige