Skip to content

Commit

Permalink
Flatten and include external ids in contact custom fields
Browse files Browse the repository at this point in the history
This is mainly needed for the Spoke/Nationbuilder integration, so may
as well keep it general for all external ids.
  • Loading branch information
michael-gratton committed Feb 23, 2022
1 parent e36eb73 commit 0e258b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def custom_fields
representative_name: area.representative_name
}
}
@object.member_external_ids.each{ |external_id|
data[external_id.system + "_id"] = external_id.id
}
data.to_json
end

Expand Down

0 comments on commit 0e258b7

Please sign in to comment.