0

Unique ID for the post

While using webnook I could see the post id keeps changing. 

 

May I know if there are any static unique id or post id for a post or a topic ?

And what is difference between a Topic and Post events you've in webhook ?

17 replies

null
    • Forumbee
    • 10 mths ago
    • Reported - view

    Mishal Fathima , thanks for your questions!

    Yes, there is a static unique id for a post. It is labeled "postKey" in the webhook.

    A "post" webhook event includes both post types: topics and replies. A "topic" webhook event includes topics only. 

      • Mishal_Fathima
      • 8 mths ago
      • Reported - view

      Forumbee Support Another question, May I know the webhook event for that can capture data when a post is moved please. I tried with Topic Any, Post Any but couldn't get the response.

      • Forumbee
      • 8 mths ago
      • Reported - view

      Mishal Fathima When a post is moved it does not generate a webhook event. Please feel free to suggest this here as an idea. Thank you!

    • Mishal_Fathima
    • 8 mths ago
    • Reported - view

    But as I checked the Postkey keeps changing when a reply is posted. I user post-posted and reply posted events.

    I'm in need of a static id for the posts that posted in here. This would be unique id for the post on any actions done on it. As the name of the post can be changed at any time.

    • Forumbee
    • 8 mths ago
    • Reported - view

    Hi Mishal Fathima , the postKey is the unique identifier for each individual post, so it will be different for each post. In the setup of the webhook for the event "REPLY_POSTED" you can add the "rootKey" field to the field set. For a reply, the rootKey is the postKey of the topic that the reply is related to.

      • Mishal_Fathima
      • 8 mths ago
      • Reported - view

      Forumbee Support Thanks for this. So i could see this is only for the reply, Can I get the same for Topic or post created or updated. 

    • Mishal_Fathima
    • 8 mths ago
    • Reported - view

    Forumbee Support Team, Any update ?

      • Forumbee
      • 8 mths ago
      • Reported - view

      Mishal Fathima The postKey is always the ID of the post that generated the webhook. So in topic webhooks, the postKey is the topic ID. In reply web hooks, the postKey is the reply ID. In your reply webhook setup, be sure to add the field "rootKey" as show in the screenshot above. This field contains the topic ID. 

      Keep in mind that multi-type webhooks (which include multiple event types under a single webhook definition) do not provide an option to edit the field list. This includes the webhooks   "TOPIC_ANY" or "REPLY_ANY". 

      In this case you should use webhooks for the individual events you are interested in. For example REPLY_POSTED and REPLY_LIKED. You can then add in the "rootKey" field to these events. 

      Here is what the webhook data looks like for that configuration:

      I hope that helps! Let us know if you have any questions.

      • Mishal_Fathima
      • 8 mths ago
      • Reported - view

      Forumbee Support Thanks much for this. Really helpful

    • Mishal_Fathima
    • 8 mths ago
    • Reported - view

    Atlast, Can you just help me with all the fields that are available so that we can add in the payload resource data to fetch up needed info through webhook ?, correct names to get the data like email address of the user etc

      • Forumbee
      • 8 mths ago
      • Reported - view

      Mishal Fathima Add the following fields to include the email:

      The Actor is the user whose action is creating the webhook event. 

      Most API fields are available to be added. For the Actor, see the Users endpoint fields. For Topic/Reply, see the Posts endpoint fields. Or if you have a specific field in mind let us know.

      • Mishal_Fathima
      • 7 mths ago
      • Reported - view

      Forumbee Support Thanks for the email point. But It says the category isn't accessible for Users and posts endpoint fields. Could you please provide it accessible at the earliest. 

      • Forumbee
      • 7 mths ago
      • Reported - view

      Mishal Fathima Your access has been granted now. Thank you!

      • Mishal_Fathima
      • 7 mths ago
      • Reported - view

      Forumbee Support Thanks much

      • Mishal_Fathima
      • 7 mths ago
      • Reported - view

      Forumbee Support I'm not able to get email payload data in both topic/ actor/reply actions ? Any idea on this why ?

      • Mishal_Fathima
      • 7 mths ago
      • Reported - view

       Forumbee Support For new post as well the email isn't retrieved through Webhook, any changes done from your end ?

      • Forumbee
      • 7 mths ago
      • Reported - view

      Mishal Fathima We have released an update that fixes an issue that caused some added fields in webhooks to not send data. Please check again to confirm if you are receiving your added fields (email). Thank you!

Content aside

  • Status Answered
  • 7 mths agoLast active
  • 17Replies
  • 49Views
  • 2 Following