Skip to content
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

Events with rich links in metadata #146

Open
juliomrc opened this issue Sep 27, 2024 · 0 comments
Open

Events with rich links in metadata #146

juliomrc opened this issue Sep 27, 2024 · 0 comments

Comments

@juliomrc
Copy link

juliomrc commented Sep 27, 2024

Version info

  • intercom-go version: v2.0.0-20210504094731-2bd1af0ce4b2
  • Go version: 1.22.0

Expected behavior

Rich links in custom events' metadata work.

Actual behavior

Rich links sent with the golang API are displayed as [object Object] in intercom's dashboard.

Steps to reproduce

	event := intercomlib.Event{
		UserID:    userId,
		EventName: eventName,
		CreatedAt: int64(time.Now().Unix()),
		Metadata:  map[string]any{
				some_rich_link: map[string]any{
                                                  "url":   "https://www.some-custom-url.com",
				                 "value": "some-custom-name",
                                  },
			},
	}

	ic.Events.Save(&event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant