# Google Pub Sub output result path query

**URL:** https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230
**Category:** Bug Report
**Created:** [November 8, 2018, 7:56am UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230 "2018-11-08T07:56:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rwild\_node](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@rwild\_node](https://forums.losant.com/u/rwild_node)
#### Post date: [November 8, 2018, 7:56am UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230/1 "2018-11-08T07:56:57Z")

</div>

I have the result path for the GCP PUB/SUB output reporting on the payload in my workflow. I seem to only ever get back message id : 2. In the gcloud sdk the message id seems to be a lot larger per pictures attached. Should i be getting the whole message id on the result path in the workflow payload? ![38%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/e2eac3e9533b3ecf92cd6bd847a0a4a81c95301c.png) ![08%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/77a6ed39f8b48f767106423ec7a377cf8b0955d4.png)

---

<div class="post-metadata">

### Author: ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)
#### Post date: [November 8, 2018, 2:01pm UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230/2 "2018-11-08T14:01:18Z")

</div>

I’ve been able to reproduce your issue - you are absolutely right that should be the full message ID. We will get a fix out for this issue soon.

---

<div class="post-metadata">

### Author: ![rwild\_node](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@rwild\_node](https://forums.losant.com/u/rwild_node)
#### Post date: [November 8, 2018, 9:45pm UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230/3 "2018-11-08T21:45:22Z")

</div>

Thanks Michael, could you also detail the best method for publishing to a google PUB/SUB topic whereby only publisher level access has been granted on the service key. ( I note the integration requires editor level access.)

---

<div class="post-metadata">

### Author: ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)
#### Post date: [November 9, 2018, 4:32pm UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230/4 "2018-11-09T16:32:47Z")

</div>

We have fixed the issue with the message ID returned by the publish node - it is now the full message ID.

The integration requires editor access because it potentially needs to create subscriptions against topics. If you don’t plan on actually subscribing to anything through the integration, only publishing, I believe you can use a service key with the permission to list/read topics and the permission to publish.

---

<div class="post-metadata">

### Author: ![rwild\_node](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@rwild\_node](https://forums.losant.com/u/rwild_node)
#### Post date: [November 9, 2018, 11:31pm UTC](https://forums.losant.com/t/google-pub-sub-output-result-path-query/1230/5 "2018-11-09T23:31:36Z")

</div>

Have tried the pubsub integration with a service key that is limited to publishing only. The integation will not connect as access is restricted. Just after a recommendation on how to publish to a pub sub topic from losant with restricted service keys? ![42%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/a5756024d29b4057248af3449de9e300c806d0bf.png)

 ![34%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/f3399f3525bbf244506787cdaf8cde70159b99ef.png)
