Jump to content
  • Invision Power Services (IPS) Integration - 3.2 - Create Post

    Invision Power Services (IPS) Integration - 3.2 - Create Post

    VBScript   Lua

     

    This GSE action creates a new post into an existing forum topic.

     

    An example call routing script can be found in A.2 - Example: Create Post.

     

    image.png

     

     

    Configure action parameters

     

    image.png

     

    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.

     

    Topic Required

    This is the id of the topic you want to create the new post in. You can obtain the id from the address line of your browser when opening the target topic:

    image.png 

     

    Author Required

    This is id of the IPS community user you want to use as author of the new post. You can obtain the id from the address line of your browser when opening that users' profile page:

     

    image.png

     

    Post Required

    This is the text/body of the new topic.

     

    Hidden

    Should the new post be visible to all users? 
    0 - the new post will be visible to all users
    1 - the new post will be hidden, i.e. only visible to moderators and administrators, and needs approval to become visible
    May be omitted. Default: 0

     

     

    Configure action exits

     

    image.png

     

    Exit 0 (Default)

    This exit will be reached when everyhting worked fine and the post 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 post 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_sIPSLatestCreatedPostURL (string)

    This global variable holds the URL of the newly created post after the ok (0) exit has been reached.


     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.