This site has been archived. Please visit help.fulcrumapp.com for our new support documentation and contact information.

Webhook paylooad dont provide name of form fields

Vipin's Avatar

Vipin

04 Aug, 2016 07:26 AM

I was playing around with your webhooks feature. It is a very nice feature but i am facing one issue. In the payload of webhook i am not getting the name of fields of the form rather you guys are sending the ID of that field in the form.

Is there any way that i can get the name of the fields as well?

Kindly look into this as this is really important to me and will help me to take some business decision.

Thanks
Vipin Mittal

  1. 1 Posted by Bryan McBride on 04 Aug, 2016 02:22 PM

    Bryan McBride's Avatar

    Hello,

    Webhook responses for record events include the record representation in our standard JSON format, which uses the keys defined in the form schema. If you need a more normalized representation of the record, we suggest enabling data shares and using the webhook notification to request the record in CSV or GeoJSON format. The webhook response includes the data.id, which can be used in conjunction with the fulcrum_id data share URL parameter to fetch the record of interest.

  2. 2 Posted by Vipin Mittal on 05 Aug, 2016 08:17 AM

    Vipin Mittal's Avatar

    Thanks Bryan for the prompt reply. This really helps. But I have one more question on top of the following discussion. As per my understanding the web-hook url shall be common to all the applications under my organisation in fulcrum account. But each application is having different data share url. So once my web-hook endpoint get the request from fulcrum how do we identify the application? Because without knowing the application we shall not be able to get the data share url which contains the data in GeoJSON format.

     

    I hope I am able to explain my question.

     

    Thanks

    Vipin Mittal

  3. 3 Posted by Bryan McBride on 05 Aug, 2016 11:24 AM

    Bryan McBride's Avatar

    The webhook includes data.form_id, which identifies your app. See http://developer.fulcrumapp.com/general/webhooks/ for more info.

  4. 4 Posted by Vipin on 10 Aug, 2016 09:34 AM

    Vipin's Avatar

    I have few more queries or points which requires confirmation:

    1. When we delete any record from fulcrum app or web application then it deletes the data from grid but it does not delete images/videos/audios associated with that record , please confirm.
    2. In case we want to download the images/videos/audios associated to any record in our web-hook then which url should we use?
    e.g. following is a sample of data we get in our web-hook:

    photos : 2fbd7aa4-72af-490c-bbb2-d662d7296e4c

    photos_caption:
    photos_url: https://web.fulcrumapp.com/shares/9227f28635ea924d/photos/view?photos=2fbd7aa4-72af-490c-bbb2-d662d7296e4c

    but the photos_url does not provide the actual image rather this is a url of a web page which used to show the associated image. But can we use the following url in order to download the actual image/video/audio ?

    https://web.fulcrumapp.com/shares/7c0c8f1a18bc661c/photos/[2fbd7aa4-72af-490c-bbb2-d662d7296e4c ] (photo name)
    Note: We are also aware of the fact that the above url shall vary for each application.

    Thanks
    Vipin Mittal

  5. 5 Posted by Bryan McBride on 10 Aug, 2016 03:22 PM

    Bryan McBride's Avatar

    Hi Vipin,

    1. Records can only be permanently deleted via the web application. Any records already been synced to the server, which are deleted from the mobile app are only removed from that local device. Media objects are not immediately removed from the system when the record is deleted.

    2. To download a single photo, you need the photo ID and the data share token. The URL would be https://web.fulcrumapp.com/shares/{ACCESS_TOKEN}/photos/{IMAGE_ID}. See http://www.fulcrumapp.com/guides/publishing-data/using-data-shares/... for more info.

    -Bryan

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac