addComment

addComment

Syntax

addComment(pageId, comment)

Package

Alias

addComment(commentId, comment)

Pkg Usage

Description

Posts a comment on the specified page or adds a reply to the specified comment.

Parameters

Parameter name

Type

Required

Description

pageId

Number

Yes

The ID of the selected page.

comment

String

Yes

Comment that will be posted on the selected page.

Or

Parameter name

Type

Required

Description

commentId

Number

Yes

The ID of the comment to reply on.

comment

String

Yes

Comment that will be posted on the selected page.

Return Type

Boolean (true/false)

The return value represents the success of adding the comment. If the routine returns "true" the comment was successfully added.

Example

addComment(11801, "I have added this comment using Power Scripts!");

If 11801 is an id of a page, the routine adds a comment to the page with that ID. If 11801 is an ID of a comment, the routine adds a reply to that comment.

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.