Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created December 10, 2019 14:59
Show Gist options
  • Select an option

  • Save wvpv/d39ee39345f799fc0193b416a7b5e2e0 to your computer and use it in GitHub Desktop.

Select an option

Save wvpv/d39ee39345f799fc0193b416a7b5e2e0 to your computer and use it in GitHub Desktop.
Query to pull PushAddress data
select
_ContactID ContactID
, _DeviceID DeviceID
, _APID APID
, _Status Status
, _Source Source
, _SourceObjectId SourceObjectId
, _Platform Platform
, _PlatformVersion PlatformVersion
, _Alias Alias
, _OptOutStatusID OptOutStatusID
, _OptOutMethodID OptOutMethodID
, _OptOutDate OptOutDate
, _OptInStatusID OptInStatusID
, _OptInMethodID OptInMethodID
, _OptInDate OptInDate
, _Channel Channel
, _CreatedDate CreatedDate
, _CreatedBy CreatedBy
, _ModifiedDate ModifiedDate
, _ModifiedBy ModifiedBy
, _City City
, _State State
, _ZipCode ZipCode
, _FirstName FirstName
, _LastName LastName
, _UTCOffset UTCOffset
, _IsHonorDST IsHonorDST
, _SystemToken SystemToken
, _ProviderToken ProviderToken
, _Badge Badge
, _LocationEnabled LocationEnabled
, _TimeZone TimeZone
, _Device Device
, _HardwareId HardwareId
, _DeviceType DeviceType
from _PushAddress
@Resacek

Resacek commented Apr 19, 2022

Copy link
Copy Markdown

Hello guys
Please help, what API can I use to retrieve the fields from _PushAddress data view? Just in case SF adds some more fields in the data views. Thanks.

@wvpv

wvpv commented Apr 19, 2022

Copy link
Copy Markdown
Author

[...] what API can I use to retrieve the fields from _PushAddress data view? Just in case SF adds some more fields in the data views.

AFAIK, this data is not exposed to the web services.

@mondrus

mondrus commented May 3, 2022

Copy link
Copy Markdown

[...] what API can I use to retrieve the fields from _PushAddress data view? Just in case SF adds some more fields in the data views.

AFAIK, this data is not exposed to the web services.

Do you know if this data is available by SQL? (the custom attributes I mean)

@SamuelSteinborn

Copy link
Copy Markdown

Hi there,
I noticed that the ContacID is not the ContactKey used in MC.
Is there any way to connect the MobilePush ContactID to the AllSubs ContactKey?

@wvpv

wvpv commented Feb 17, 2023

Copy link
Copy Markdown
Author

Hi there, I noticed that the ContacID is not the ContactKey used in MC. Is there any way to connect the MobilePush ContactID to the AllSubs ContactKey?

Here's a response on that topic from Bill Mote who works at SF: https://salesforce.stackexchange.com/a/313851/5202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment