Skip to content

Publish data as Salesforce platform event #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jwtruver opened this issue Sep 26, 2022 · 2 comments
Closed

Publish data as Salesforce platform event #506

jwtruver opened this issue Sep 26, 2022 · 2 comments
Assignees

Comments

@jwtruver
Copy link
Collaborator

jwtruver commented Sep 26, 2022

Use the Salesforce Pub/Sub API to push an array of per-contact data to the platform event. Get data from endpoint in #510 .

[{
	contactId: ‘0032g00000UtKcCAAV’,
	personId: ‘1235’,
	volgisticsId: 1235,
	updatedVolunteerStatus: ‘Active’,
	updatedFirstVolunteerDate: 2021/01/01,
	updatedLastVolunteerDate: 2021/02/02,
	updatedFosterStartDate: 2020/10/18,
	updatedFosterEndDate: 2022/01/01
}]
@kfettich
Copy link
Collaborator

The following fields need to be written into SalesForce:

  • person IDs from external sources (volgistics & shelterluv, if available)
  • Volunteer status (from Volgistics data, "Master" tab, "Status" field; "Applicant" value will be converted to "New Sign Up" before getting written into SF)
  • Foster status (TBD)
  • Foster start date: the first time they ever took in a foster animal; if the field is already filled in SalesForce, do not overwrite
  • Foster end date: the date when the last foster was returned

@kfettich
Copy link
Collaborator

If writing to SF fails, we also want to print an informative error message so maintenance folks know what to do if it fails

@c-simpson c-simpson changed the title Data is written to PAWS' Salesforce successfully Publish data as Salesforce platform event Dec 28, 2022
@c-simpson c-simpson assigned sposerina and unassigned c-simpson Dec 28, 2022
@kfettich kfettich closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants